Skip to content

Commit 19bac40

Browse files
authored
docs: create Gentoo installation tutorial (#1211)
1 parent 0ddf5e2 commit 19bac40

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docpages/03_installing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ There are many ways to install D++, either from a package manager, or from sourc
77
* \subpage install-vcpkg
88
* \subpage install-arch-aur
99
* \subpage install-void-xbps
10+
* \subpage install-gentoo-portage
1011
* \subpage install-windows-vs-zip
1112
* \subpage install-xmake
1213
* \subpage install-brew
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
\page install-gentoo-portage Installing with Portage (Gentoo)
2+
3+
D++ is available on [GURU](https://wiki.gentoo.org/wiki/Project:GURU). To install D++, you must first enable the GURU repository.
4+
To do so, execute the following commands (as root):
5+
6+
```bash
7+
emerge --ask app-eselect/eselect-repository
8+
eselect repository enable guru
9+
emaint sync --repo guru
10+
```
11+
12+
This enables the GURU repository, which consists of user-contributed packages, such as D++!
13+
14+
If you wish, you may enable coroutine and voice support through USE flags. To do so, using your text editor of choice, add the following line to `/etc/portage/package.use/dpp` (as root):
15+
16+
```
17+
dev-cpp/dpp voice coro
18+
```
19+
> You may choose between voice, coro, or both, just pick and choose!
20+
21+
You will now be able to use D++ by including its library on the command line:
22+
23+
```bash
24+
g++ mybot.cpp -o mybot -ldpp
25+
```
26+
27+
\include{doc} install_prebuilt_footer.dox

0 commit comments

Comments
 (0)