dev-debug/gprofng-gui: add 2.1

Switch to out-of-source build as otherwise PNGs get added to the JAR
twice.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-08-07 08:15:19 +01:00
parent e776601f91
commit f40d6547eb
3 changed files with 70 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST gprofng-gui-2.0.tar.gz 1297153 BLAKE2B 0a0c921a2ba1e81cdec3cba5fbe66ae8079fcce3f3fcad2ad792e2758ca218bd667dd9722d32e25027d9eb1b6ddb3897c94098db07f24915928347c4ff804b19 SHA512 2e27eb3632de6a81c9301bea740a1bda288d0c74a788a59cc44cd3c3a172a45e7be8bacb7ffe454924f707728b38bfb539998a41a8ef0b363039d7d6fcc6ac0a
DIST gprofng-gui-2.1.tar.gz 1323092 BLAKE2B b7618272f9798e2b4798b5c234d4ed323b086bae086f8df86407c129598db881ad5c87262a4f8093b22708e444db31421d157e2b1aff216adcca5a06713935a2 SHA512 c9351933594a9af06fadb7771a74fbec44a5d5a44672267f857c654ce871ca0b542cd5cfc287cdeed2b25f962696fa4b302c0733326cdf4d13ee4e13ed4f32ac

View File

@@ -0,0 +1,52 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit java-pkg-2 xdg
DESCRIPTION="Full-fledged graphical interface to operate gprofng"
HOMEPAGE="https://www.gnu.org/software/gprofng-gui/"
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://git.savannah.gnu.org/git/gprofng-gui.git"
inherit autotools git-r3
else
SRC_URI="mirror://gnu/gprofng-gui/${P}.tar.gz"
S="${WORKDIR}/${P}"
KEYWORDS="~amd64"
fi
LICENSE="GPL-3+"
SLOT="0"
DEPEND=">=virtual/jdk-1.8:*"
RDEPEND="
sys-devel/binutils:*[gprofng(-)]
>=virtual/jre-1.8:*
"
src_prepare() {
default
mkdir "${WORKDIR}"/build || die
[[ ${PV} == 9999 ]] && eautoreconf
java-pkg-2_src_prepare
}
src_configure() {
cd "${WORKDIR}"/build || die
ECONF_SOURCE="${S}" econf
}
src_compile() {
emake -C "${WORKDIR}"/build
}
src_install() {
einstalldocs
emake -C "${WORKDIR}"/build DESTDIR="${D}" install
}

View File

@@ -7,6 +7,7 @@ inherit java-pkg-2 xdg
DESCRIPTION="Full-fledged graphical interface to operate gprofng"
HOMEPAGE="https://www.gnu.org/software/gprofng-gui/"
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://git.savannah.gnu.org/git/gprofng-gui.git"
inherit autotools git-r3
@@ -29,7 +30,23 @@ RDEPEND="
src_prepare() {
default
mkdir "${WORKDIR}"/build || die
[[ ${PV} == 9999 ]] && eautoreconf
java-pkg-2_src_prepare
}
src_configure() {
cd "${WORKDIR}"/build || die
ECONF_SOURCE="${S}" econf
}
src_compile() {
emake -C "${WORKDIR}"/build
}
src_install() {
einstalldocs
emake -C "${WORKDIR}"/build DESTDIR="${D}" install
}