You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.2 KiB
59 lines
1.2 KiB
3 years ago
|
# Copyright 2016-2021 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
8 years ago
|
|
||
|
if [[ ${PV} == 9999 ]]; then
|
||
|
ECLASS="git-r3"
|
||
5 years ago
|
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/${PN}.git"
|
||
8 years ago
|
else
|
||
4 years ago
|
SRC_URI="https://gitweb.gentoo.org/proj/java-ebuilder.git/snapshot/${P}.tar.gz"
|
||
8 years ago
|
KEYWORDS="~amd64"
|
||
|
fi
|
||
|
|
||
|
inherit java-pkg-2 java-pkg-simple prefix ${ECLASS}
|
||
|
|
||
|
DESCRIPTION="Java team tool for semi-automatic creation of ebuilds from pom.xml"
|
||
|
HOMEPAGE="https://github.com/gentoo/java-ebuilder"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
|
||
3 years ago
|
DEPEND=">=virtual/jdk-1.8:*"
|
||
|
RDEPEND=">=virtual/jre-1.8:*
|
||
8 years ago
|
sys-process/parallel
|
||
|
>=dev-java/maven-bin-3"
|
||
8 years ago
|
|
||
|
S="${WORKDIR}/${P}"
|
||
|
|
||
|
JAVA_SRC_DIR="src/main/java"
|
||
4 years ago
|
JAVA_RESOURCE_DIRS="src/main/resources"
|
||
8 years ago
|
|
||
4 years ago
|
JAVA_LAUNCHER_FILENAME=${PN}
|
||
|
JAVA_MAIN_CLASS="org.gentoo.java.ebuilder.Main"
|
||
8 years ago
|
|
||
5 years ago
|
src_prepare() {
|
||
|
default
|
||
4 years ago
|
hprefixify scripts/{bin/*,resources/Makefiles/*,movl} java-ebuilder.conf
|
||
8 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
java-pkg-simple_src_install
|
||
|
|
||
|
insinto /var/lib/${PN}
|
||
|
doins -r maven
|
||
8 years ago
|
dodir /var/lib/${PN}/{poms,cache}
|
||
5 years ago
|
keepdir /var/lib/${PN}/{poms,cache}
|
||
8 years ago
|
|
||
|
dodoc README maven.conf
|
||
|
|
||
4 years ago
|
exeinto /usr/lib/${PN}/bin
|
||
|
doexe scripts/bin/*
|
||
|
insinto /usr/lib/${PN}
|
||
|
doins -r scripts/resources/*
|
||
8 years ago
|
dobin scripts/movl
|
||
8 years ago
|
|
||
|
insinto /etc
|
||
|
doins java-ebuilder.conf
|
||
8 years ago
|
}
|