summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2021-02-25 16:25:43 +0100
committerLars Wendler <polynomial-c@gentoo.org>2021-02-25 16:25:50 +0100
commit08959a02b676fd536fde813aad50307a157abc8c (patch)
treebb8ce192b916c2c7e9ddd4c9debb6f571f964250 /games-engines
parentapp-admin/logrotate: fix a typo in logrotate.conf (diff)
downloadgentoo-08959a02b676fd536fde813aad50307a157abc8c.tar.gz
gentoo-08959a02b676fd536fde813aad50307a157abc8c.tar.bz2
gentoo-08959a02b676fd536fde813aad50307a157abc8c.zip
games-engines/devilutionx: Added "hellfire" USE flag
Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/devilutionx/devilutionx-9999.ebuild10
-rw-r--r--games-engines/devilutionx/metadata.xml1
2 files changed, 8 insertions, 3 deletions
diff --git a/games-engines/devilutionx/devilutionx-9999.ebuild b/games-engines/devilutionx/devilutionx-9999.ebuild
index 913e1f40eef5..5c1340040ddd 100644
--- a/games-engines/devilutionx/devilutionx-9999.ebuild
+++ b/games-engines/devilutionx/devilutionx-9999.ebuild
@@ -25,7 +25,7 @@ fi
LICENSE="public-domain"
SLOT="0"
-IUSE="debug lto"
+IUSE="debug +hellfire lto"
RDEPEND="
dev-libs/libsodium
@@ -50,11 +50,15 @@ src_configure() {
-DDISABLE_LTO="$(usex !lto)"
-DDIST="ON"
-DUBSAN="OFF"
+ -DHELLFIRE="$(usex hellfire)"
)
cmake_src_configure
- # Build system still doesn't reliably set release version in the build
- sed "/PROJECT_VERSION/s@-@${PV}@" -i "${BUILD_DIR}/config.h" || die
+ if [[ "${PV}" != 9999 ]] ; then
+ # Build system still doesn't reliably set release version
+ sed "/PROJECT_VERSION/s@-@${PV}@" -i "${BUILD_DIR}/config.h" \
+ || die
+ fi
}
pkg_postinst() {
diff --git a/games-engines/devilutionx/metadata.xml b/games-engines/devilutionx/metadata.xml
index 6f7209b5d36d..cb26cf9fd006 100644
--- a/games-engines/devilutionx/metadata.xml
+++ b/games-engines/devilutionx/metadata.xml
@@ -6,6 +6,7 @@
<name>Lars Wendler</name>
</maintainer>
<use>
+ <flag name="hellfire">Enable support for Diablo Hellfire Expansion</flag>
<flag name="lto">Build with link time optimization enabled</flag>
</use>
<upstream>