diff options
author | Daniel Pielmeier <billie@gentoo.org> | 2021-04-17 19:44:50 +0200 |
---|---|---|
committer | Daniel Pielmeier <billie@gentoo.org> | 2021-04-17 19:44:50 +0200 |
commit | 0e55f97b03dfc27345ac6916ea5e4167285ef92f (patch) | |
tree | 564d78b0ffcd2b183ee0bb28adb1c2a2badaf3cc /media-tv/channeleditor | |
parent | media-sound/puddletag: Add support for python 3.9. (diff) | |
download | gentoo-0e55f97b03dfc27345ac6916ea5e4167285ef92f.tar.gz gentoo-0e55f97b03dfc27345ac6916ea5e4167285ef92f.tar.bz2 gentoo-0e55f97b03dfc27345ac6916ea5e4167285ef92f.zip |
media-tv/channeleditor: Bump java virtuals to 1.8.
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Daniel Pielmeier <billie@gentoo.org>
Diffstat (limited to 'media-tv/channeleditor')
-rw-r--r-- | media-tv/channeleditor/channeleditor-1.9.2.1-r3.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/media-tv/channeleditor/channeleditor-1.9.2.1-r3.ebuild b/media-tv/channeleditor/channeleditor-1.9.2.1-r3.ebuild new file mode 100644 index 000000000000..e3ec1016567e --- /dev/null +++ b/media-tv/channeleditor/channeleditor-1.9.2.1-r3.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE=source +inherit desktop eutils java-pkg-2 java-ant-2 xdg + +DESCRIPTION="Editor for VDR channels.conf" +HOMEPAGE="https://sites.google.com/site/reniershomepage/" +SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.8:*" +DEPEND=">=virtual/jdk-1.8:*" + +PATCHES=( + # include localisation changes + "${FILESDIR}"/${P}-messages.properties.patch + "${FILESDIR}"/${P}-messages_en.properties.patch +) + +S="${WORKDIR}/${PN}" + +mainclass() { + # read Main-Class from MANIFEST.MF + sed -n "s/^Main-Class: \([^ ]\+\).*/\1/p" "${S}/MANIFEST.MF" \ + || die "reading Main-Class failed" +} + +src_prepare() { + default + + xdg_environment_reset + + # move files out of build and remove stuff not needed in the package + mv build/* "${S}" || die "cleaning build dir failed" + rm -f src/java/org/javalobby/icons/{README,COPYRIGHT} \ + || die "removing files failed" + + # copy build.xml + cp -f "${FILESDIR}/build-${PV}.xml" build.xml \ + || die "copying build.xml failed" + + # convert CRLF to LF + edos2unix MANIFEST.MF +} + +src_compile() { + eant build -Dmanifest.mainclass=$(mainclass) +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + java-pkg_dolauncher ${PN} --main $(mainclass) + + use source && java-pkg_dosrc src + + make_desktop_entry channeleditor Channeleditor "" "Utility" +} |