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-2.3.84, Repoman-2.3.20
Signed-off-by: Lars Wendler <[email protected]>
  • Loading branch information
Lars Wendler committed Jan 2, 2020
1 parent 0a1e8a4 commit d032b5b
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions games-engines/devilutionx/devilutionx-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ fi
LICENSE="public-domain"
SLOT="0"

IUSE="debug"
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 @@ -38,17 +39,32 @@ 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=(
-DBINARY_RELEASE=ON
-DASAN="OFF"
-DDEBUG="$(usex debug)"
-DDIST="ON"
-DFASTER="OFF"
-DLTO="$(usex lto)"
-DUBSAN="OFF"
)
cmake_src_configure
}

src_install() {
dobin "${BUILD_DIR}/${PN}"
make_desktop_entry ${PN} "Diablo devolved"

newicon -s 32 Packaging/resources/Diablo_32.png ${PN}.png
newicon -s 48 Packaging/resources/Diablo_48.png ${PN}.png
make_desktop_entry ${PN} "Diablo devolved" "/usr/share/icons/hicolor/48x48/apps/devilutionx.png"
}

pkg_postinst() {
Expand Down

0 comments on commit d032b5b

Please sign in to comment.