Gentoo Archives: gentoo-commits

From: Daniel Pielmeier <billie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/channeleditor/
Date: Sat, 17 Apr 2021 17:45:10
Message-Id: 1618681490.0e55f97b03dfc27345ac6916ea5e4167285ef92f.billie@gentoo
1 commit: 0e55f97b03dfc27345ac6916ea5e4167285ef92f
2 Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 17 17:44:50 2021 +0000
4 Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 17 17:44:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e55f97b
7
8 media-tv/channeleditor: Bump java virtuals to 1.8.
9
10 Package-Manager: Portage-3.0.17, Repoman-3.0.2
11 Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org>
12
13 .../channeleditor/channeleditor-1.9.2.1-r3.ebuild | 64 ++++++++++++++++++++++
14 1 file changed, 64 insertions(+)
15
16 diff --git a/media-tv/channeleditor/channeleditor-1.9.2.1-r3.ebuild b/media-tv/channeleditor/channeleditor-1.9.2.1-r3.ebuild
17 new file mode 100644
18 index 00000000000..e3ec1016567
19 --- /dev/null
20 +++ b/media-tv/channeleditor/channeleditor-1.9.2.1-r3.ebuild
21 @@ -0,0 +1,64 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +JAVA_PKG_IUSE=source
28 +inherit desktop eutils java-pkg-2 java-ant-2 xdg
29 +
30 +DESCRIPTION="Editor for VDR channels.conf"
31 +HOMEPAGE="https://sites.google.com/site/reniershomepage/"
32 +SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.tar.gz"
33 +
34 +LICENSE="GPL-2"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~x86"
37 +IUSE=""
38 +
39 +RDEPEND=">=virtual/jre-1.8:*"
40 +DEPEND=">=virtual/jdk-1.8:*"
41 +
42 +PATCHES=(
43 + # include localisation changes
44 + "${FILESDIR}"/${P}-messages.properties.patch
45 + "${FILESDIR}"/${P}-messages_en.properties.patch
46 +)
47 +
48 +S="${WORKDIR}/${PN}"
49 +
50 +mainclass() {
51 + # read Main-Class from MANIFEST.MF
52 + sed -n "s/^Main-Class: \([^ ]\+\).*/\1/p" "${S}/MANIFEST.MF" \
53 + || die "reading Main-Class failed"
54 +}
55 +
56 +src_prepare() {
57 + default
58 +
59 + xdg_environment_reset
60 +
61 + # move files out of build and remove stuff not needed in the package
62 + mv build/* "${S}" || die "cleaning build dir failed"
63 + rm -f src/java/org/javalobby/icons/{README,COPYRIGHT} \
64 + || die "removing files failed"
65 +
66 + # copy build.xml
67 + cp -f "${FILESDIR}/build-${PV}.xml" build.xml \
68 + || die "copying build.xml failed"
69 +
70 + # convert CRLF to LF
71 + edos2unix MANIFEST.MF
72 +}
73 +
74 +src_compile() {
75 + eant build -Dmanifest.mainclass=$(mainclass)
76 +}
77 +
78 +src_install() {
79 + java-pkg_dojar dist/${PN}.jar
80 + java-pkg_dolauncher ${PN} --main $(mainclass)
81 +
82 + use source && java-pkg_dosrc src
83 +
84 + make_desktop_entry channeleditor Channeleditor "" "Utility"
85 +}