mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
Switch to out-of-source build as otherwise PNGs get added to the JAR twice. Signed-off-by: Sam James <sam@gentoo.org>
53 lines
935 B
Bash
53 lines
935 B
Bash
# 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
|
|
}
|