/[gentoo-x86]/media-tv/channeleditor/channeleditor-1.9.2.ebuild
Gentoo

Contents of /media-tv/channeleditor/channeleditor-1.9.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu Oct 4 16:40:37 2007 UTC (5 years, 8 months ago) by zzam
Branch: MAIN
Initial import of ebuild, written by Daniel Pielmeier <daniel.pielmeier@googlemail.com>.
(Portage version: 2.1.3.11)

1 zzam 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
4    
5     inherit eutils java-pkg-2 java-ant-2
6    
7     DESCRIPTION="Editor for VDR channels.conf"
8     HOMEPAGE="http://renier.re.funpic.de/"
9     SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.tar.gz"
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13     KEYWORDS="~x86"
14     IUSE=""
15    
16     DEPEND=">=virtual/jdk-1.5"
17     RDEPEND=">=virtual/jre-1.5"
18    
19     S="${WORKDIR}/${PN}"
20    
21     mainclass() {
22     # read Main-Class from MANIFEST.MF
23     sed -n "s/^Main-Class: \([^ ]\+\).*/\1/p" "${S}/MANIFEST.MF"
24     }
25    
26     src_unpack() {
27     unpack ${A}
28     cd "${S}"
29    
30     # move files out of build and remove stuff not needed in the package
31     mv build/* "${S}"
32     rm -f src/java/org/javalobby/icons/{README,COPYRIGHT}
33    
34     # copy build.xml
35     cp -f "${FILESDIR}/build.xml" build.xml
36    
37     # convert CRLF to LF
38     edos2unix MANIFEST.MF
39     }
40    
41     src_compile() {
42     eant build -Dmanifest.mainclass=$(mainclass)
43     }
44    
45     src_install() {
46     java-pkg_dojar dist/${PN}.jar
47     java-pkg_dolauncher ${PN} --main $(mainclass)
48    
49     make_desktop_entry channeleditor Channeleditor "" "Utility" || \
50     die "Couldn't make ttcut desktop entry"
51     }

  ViewVC Help
Powered by ViewVC 1.1.20