Skip to content

Commit

Permalink
gentoo added portage configuration files
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
silverqx committed Aug 22, 2024
1 parent 652e2a3 commit 99ad2fb
Show file tree
Hide file tree
Showing 31 changed files with 66 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/distributions/gentoo/etc/portage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Portage configuration

You can inspire from these configuration files, I'm using them on my development machine.
1 change: 1 addition & 0 deletions tools/distributions/gentoo/etc/portage/env/ccache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FEATURES="ccache"
4 changes: 4 additions & 0 deletions tools/distributions/gentoo/etc/portage/env/debugsyms
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# See https://wiki.gentoo.org/wiki/Valgrind#Troubleshooting
CFLAGS="${CFLAGS} -ggdb"
CXXFLAGS="${CXXFLAGS} -ggdb"
FEATURES="${FEATURES} splitdebug compressdebug -nostrip"
2 changes: 2 additions & 0 deletions tools/distributions/gentoo/etc/portage/env/installsources
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# See https://wiki.gentoo.org/wiki/GDB#Retain_debug_symbols
FEATURES="${FEATURES} installsources"
3 changes: 3 additions & 0 deletions tools/distributions/gentoo/etc/portage/env/lto
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
LTO="-flto=auto -fno-fat-lto-objects"
CFLAGS="${CFLAGS} ${LTO}"
CXXFLAGS="${CXXFLAGS} ${LTO}"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-util/ccache ~amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Use the latest Clang 😎
sys-devel/llvm* ~amd64
sys-devel/clang* ~amd64
sys-libs/compiler-rt* ~amd64
sys-libs/libomp ~amd64
dev-debug/lldb ~amd64
sys-devel/lld ~amd64
sys-devel/lld-toolchain-symlinks ~amd64
dev-python/lid ~amd64
sys-libs/libcxx ~amd64
sys-libs/libcxxabi ~amd64
sys-libs/llvm-libunwind ~amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-build/cmake ~amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app-eselect/eselect-pwsh ~amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sys-devel/gcc ~amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sys-devel/gcc-config ~amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-db/mariadb-connector-c ~amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sys-devel/mold ~amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-db/mysql-connector-c ~amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-db/postgresql ~amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app-shells/pwsh-bin ~amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dev-db/tinyorm ~amd64
dev-cpp/tabulate ~amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app-editors/vscode ~amd64
1 change: 1 addition & 0 deletions tools/distributions/gentoo/etc/portage/package.env/glibc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sys-libs/glibc debugsyms installsources
1 change: 1 addition & 0 deletions tools/distributions/gentoo/etc/portage/package.env/tinyorm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-db/tinyorm ccache
2 changes: 2 additions & 0 deletions tools/distributions/gentoo/etc/portage/package.use/binutils
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Enable the gold linker
sys-devel/binutils gold
1 change: 1 addition & 0 deletions tools/distributions/gentoo/etc/portage/package.use/ccache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-util/ccache doc
10 changes: 10 additions & 0 deletions tools/distributions/gentoo/etc/portage/package.use/clang
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
sys-devel/clang doc
# clang <15 set flags on sys-devel/clang package
<sys-devel/clang-15 default-lld llvm-libunwind default-compiler-rt
# from clang 15 it was extracted to the sys-devel/clang-common
>=sys-devel/clang-common-15 default-lld llvm-libunwind default-compiler-rt
# required by sys-devel/clang-common-15.0.7-r3::gentoo[llvm-libunwind,default-compiler-rt]
# required by sys-devel/clang-15.0.7-r1::gentoo
# required by @selected
# required by @world (argument)
>=sys-libs/llvm-libunwind-15.0.7 static-libs
1 change: 1 addition & 0 deletions tools/distributions/gentoo/etc/portage/package.use/mysql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-db/mysql -server -perl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-db/mysql-connector-c static-libs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-db/postgresql -server
1 change: 1 addition & 0 deletions tools/distributions/gentoo/etc/portage/package.use/qtbase
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-qt/qtbase dbus mysql postgres -cups -gtk -libinput -libproxy -nls -udev
1 change: 1 addition & 0 deletions tools/distributions/gentoo/etc/portage/package.use/qtsql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-qt/qtsql postgres -debug
3 changes: 3 additions & 0 deletions tools/distributions/gentoo/etc/portage/package.use/tinyorm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dev-db/tinyorm lto mysql postgres sqlite mysql-ping tom tom-cli
# The sqlite use flag is ON by default so -sqlite is needed, postgres isn't ON by default
# dev-db/tinyorm build-drivers lto mysql -sqlite
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Unmask the gold USE flag
sys-devel/binutils -gold

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[crystal]
location = /var/db/repos/crystal

0 comments on commit 99ad2fb

Please sign in to comment.