Skip to content

Commit

Permalink
games-rpg/open-adventure: add 1.20, drop 1.16
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Smaniotto <[email protected]>
  • Loading branch information
NicolaSmaniotto committed Jan 10, 2025
1 parent 1f2e995 commit cb3adcc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion games-rpg/open-adventure/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
DIST open-adventure-1.16.tar.bz2 211155 BLAKE2B 2c54bf8b30fefb5b52cd69d5c315e0c628ee51d514f545d2830ca809c40f3824e20eb5c06ad94b6fbf3aaeb9c9c2bad72b9217dfbabc33ec8cd469690ddab125 SHA512 4b58937a20200a081bc44464f5132ea33a010756831f95d5be75916f01b70bc54bd9f5606823fee5fbe2de1dd2e558325f516f050bc40e48cd8d840e65c17e07
DIST open-adventure-1.17.tar.bz2 212254 BLAKE2B 0d19acae39bb58b3cb7ca240552c8f796be73ea4dde44ed60429f3e8cf51ebecbdf71d6ffca08f00ad35f8eb78f1d7f9cb50a336c73e874f8bde81c1cb88acb4 SHA512 bfd4a8f3720aaa98ffcd3d302df79d0f9b4d183797f1067f198c2deb1e11465ec40e2164aa92705de436ba767954e2c18f1d38fdba0e8ece19868fa7ec64af85
DIST open-adventure-1.18.tar.bz2 212752 BLAKE2B c186c2317381ba8e0a2efd40de02ad78e6273c4f28ee67c59075a4ab318e0ad850924d46a64e635979ad80a684970646a181c1fdec2f78e48fead4a4376b48a7 SHA512 8118a1d630dab75268e2503ccf8d64a35d2134795e852c48e5082a66e2af9c94692ba30ea409e6b2bfcf5bd24109b2ab7e9111a044591b1e9a87f59b2bbeeceb
DIST open-adventure-1.20.tar.bz2 213039 BLAKE2B 3bfbc07a4463e58417398cddd2db7d955e538f79b75b745a26037cc65ab4a3184fab6b9dfcddd01f1a0544747feab47bf093e917b4b67501cc320bb21e8d5db9 SHA512 26212cd0e332d617dfc6bc79ec0090d369c8d9b36c925cc72a638c2822ee5c04a813413111f6d4eab417fd6f9ff5bbd09c1bf2981737457a71cfebd48d7dcb02
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 Gentoo Authors
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
Expand All @@ -13,7 +13,7 @@ SRC_URI="https://gitlab.com/esr/${PN}/-/archive/${PV}/${P}.tar.bz2"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="autosave nosave test"
IUSE="autosave +doc nosave test"
# autosave and nosave are mutually exclusive
# tests require that they are both disabled
REQUIRED_USE="
Expand All @@ -26,6 +26,7 @@ DEPEND="dev-libs/libedit"
RDEPEND="${DEPEND}"
BDEPEND="
$(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]' )
doc? ( dev-ruby/asciidoctor )
"

DOCS=( NEWS.adoc hints.adoc history.adoc README.adoc notes.adoc )
Expand All @@ -40,10 +41,6 @@ src_prepare() {
-i Makefile || die "Makefile patching failed"

eapply_user

# Add missing semicolon
sed -e 's/rspeak(SAVERESUME_DISABLED)/rspeak(SAVERESUME_DISABLED);/' \
-i saveresume.c || die "Typo fix failed"
}

src_compile() {
Expand All @@ -54,12 +51,16 @@ src_compile() {
append-cflags "-DADVENT_NOSAVE"
fi

emake advent advent.6
emake advent

use doc && emake advent.6
}

src_install() {
einstalldocs
doman advent.6
if use doc; then
einstalldocs
doman advent.6
fi

dobin advent

Expand All @@ -68,6 +69,9 @@ src_install() {
}

src_test() {
emake cheat
pushd tests || die
# parallel tests often fail
emake -j1 check
emake -j1
popd || die
}

0 comments on commit cb3adcc

Please sign in to comment.