From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 582001382C5 for ; Sat, 17 Apr 2021 17:45:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B1103E0845; Sat, 17 Apr 2021 17:45:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 73C71E0845 for ; Sat, 17 Apr 2021 17:45:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2AD53335C31 for ; Sat, 17 Apr 2021 17:45:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A758F4A5 for ; Sat, 17 Apr 2021 17:45:06 +0000 (UTC) From: "Daniel Pielmeier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Daniel Pielmeier" Message-ID: <1618681490.0e55f97b03dfc27345ac6916ea5e4167285ef92f.billie@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/channeleditor/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-tv/channeleditor/channeleditor-1.9.2.1-r3.ebuild X-VCS-Directories: media-tv/channeleditor/ X-VCS-Committer: billie X-VCS-Committer-Name: Daniel Pielmeier X-VCS-Revision: 0e55f97b03dfc27345ac6916ea5e4167285ef92f X-VCS-Branch: master Date: Sat, 17 Apr 2021 17:45:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 10d477cc-9730-46b9-a9ea-00244c702e1e X-Archives-Hash: 2785214d649f813a20dca13a14038d87 commit: 0e55f97b03dfc27345ac6916ea5e4167285ef92f Author: Daniel Pielmeier gentoo org> AuthorDate: Sat Apr 17 17:44:50 2021 +0000 Commit: Daniel Pielmeier gentoo org> CommitDate: Sat Apr 17 17:44:50 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e55f97b media-tv/channeleditor: Bump java virtuals to 1.8. Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Daniel Pielmeier gentoo.org> .../channeleditor/channeleditor-1.9.2.1-r3.ebuild | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) 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 00000000000..e3ec1016567 --- /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" +}