commit: 5ef609d661b55c73ebd347ffbd034cc809b0cf2b Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> AuthorDate: Sun May 5 11:32:34 2024 +0000 Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org> CommitDate: Wed May 8 21:21:40 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ef609d6
media-tv/channeleditor: update EAPI 7 -> 8 - Switches to java-pkg-simple - No longer needs build.xml nor depends on ant - Drops java-ant-2.eclass, edos2unix.eclass - Uses the JAVA_MAIN_CLASS eclass variable for launchers Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org> .../channeleditor/channeleditor-1.9.2.1-r4.ebuild | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/media-tv/channeleditor/channeleditor-1.9.2.1-r4.ebuild b/media-tv/channeleditor/channeleditor-1.9.2.1-r4.ebuild new file mode 100644 index 000000000000..e09a7fe8c5d0 --- /dev/null +++ b/media-tv/channeleditor/channeleditor-1.9.2.1-r4.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" + +inherit desktop java-pkg-2 java-pkg-simple xdg + +DESCRIPTION="Editor for VDR channels.conf" +HOMEPAGE="https://sites.google.com/site/reniershomepage/channeleditor" +SRC_URI="https://downloads.sourceforge.net/project/channeleditor/channeleditor/$(ver_cut 1-3)/${P/-/_}_src.tar.gz" + +S="${WORKDIR}/${PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +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 +) + +JAVA_RESOURCE_DIRS="resources/src/java" +JAVA_SRC_DIR="src" + +src_prepare() { + default #780585 + java-pkg-2_src_prepare + + xdg_environment_reset + + JAVA_MAIN_CLASS="$(grep Main build/MANIFEST.MF | cut -d' ' -f2 | tr -cd [:print:])" + + # java-pkg-simple expects resources in JAVA_RESOURCE_DIRS + mkdir -p resources || die + find src -type f ! -name '*.java' \ + ! -name 'README' ! -name 'COPYRIGHT' \ + | xargs cp --parent -t resources || die +} + +src_install() { + java-pkg-simple_src_install + make_desktop_entry channeleditor Channeleditor "" "Utility" +}