Skip to content

Commit

Permalink
games-engines/devilutionx: Synced live ebuild
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Lars Wendler <[email protected]>
  • Loading branch information
Lars Wendler committed Oct 12, 2020
1 parent b86f77a commit 8a0c401
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions games-engines/devilutionx/devilutionx-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ IUSE="debug lto"

RDEPEND="
dev-libs/libsodium
media-fonts/sil-charis
media-libs/libsdl2[haptic]
media-libs/sdl2-mixer
media-libs/sdl2-ttf
Expand All @@ -39,34 +38,18 @@ BDEPEND="
virtual/pkgconfig
"

src_prepare() {
sed "/PROJECT_VERSION/s|@PROJECT_VERSION@|${PV}|" \
-i SourceS/config.h.in || die
sed 's/CharisSILB.ttf/CharisSIL-B.ttf/g' \
-i SourceX/DiabloUI/fonts.h || die
cmake_src_prepare
}

src_configure() {
local mycmakeargs=(
-DASAN="OFF"
-DDEBUG="$(usex debug)"
-DDISABLE_LTO="$(usex !lto)"
-DDIST="ON"
-DFASTER="OFF"
-DLTO="$(usex lto)"
-DUBSAN="OFF"
)
cmake_src_configure
}

src_install() {
dobin "${BUILD_DIR}/${PN}"

local size
for size in 32 48 ; do
newicon -s ${size} Packaging/resources/Diablo_${size}.png ${PN}.png
done
make_desktop_entry ${PN} "Diablo devolved" "/usr/share/icons/hicolor/48x48/apps/devilutionx.png"
# Build system still doesn't reliably set release version in the build
sed "/PROJECT_VERSION/s@-@${PV}@" -i "${BUILD_DIR}/config.h" || die
}

pkg_postinst() {
Expand Down

0 comments on commit 8a0c401

Please sign in to comment.