Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: create Gentoo installation tutorial #1211

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docpages/03_installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ There are many ways to install D++, either from a package manager, or from sourc
* \subpage install-vcpkg
* \subpage install-arch-aur
* \subpage install-void-xbps
* \subpage install-gentoo-portage
* \subpage install-windows-vs-zip
* \subpage install-xmake
* \subpage install-brew
Expand Down
27 changes: 27 additions & 0 deletions docpages/install/install-gentoo-portage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
\page install-gentoo-portage Installing with Portage (Gentoo)

D++ is available on [GURU](https://wiki.gentoo.org/wiki/Project:GURU). To install D++, you must first enable the GURU repository.
To do so, execute the following commands (as root):

```bash
emerge --ask app-eselect/eselect-repository
eselect repository enable guru
emaint sync --repo guru
```

This enables the GURU repository, which consists of user-contributed packages, such as D++!

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):

```
dev-cpp/dpp voice coro
```
> You may choose between voice, coro, or both, just pick and choose!

You will now be able to use D++ by including its library on the command line:

```bash
g++ mybot.cpp -o mybot -ldpp
```

\include{doc} install_prebuilt_footer.dox