/[gentoo-x86]/net-misc/yajhfc/yajhfc-0.5.7.ebuild
Gentoo

Contents of /net-misc/yajhfc/yajhfc-0.5.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Mar 22 09:09:50 2015 UTC (4 years, 10 months ago) by ercpe
Branch: MAIN
CVS Tags: HEAD
Version bump of yajhfc; build from source

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 77C501ED)

1 ercpe 1.1 # Copyright 1999-2015 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/net-misc/yajhfc/yajhfc-0.5.2.ebuild,v 1.2 2015/03/21 19:44:52 jlec Exp $
4    
5     EAPI=5
6    
7     inherit java-pkg-2 java-pkg-simple
8    
9     MY_P="${PN}-${PV}"
10     MY_P="${MY_P/_/}"
11     MY_P="${MY_P/./_}"
12     MY_P="${MY_P/./_}"
13    
14     DESCRIPTION="Yet another Java HylaFAX Plus Client"
15     HOMEPAGE="http://www.yajhfc.de/"
16     SRC_URI="http://download.yajhfc.de/releases/${MY_P}-src.zip"
17    
18     SLOT="0"
19     LICENSE="GPL-3"
20     KEYWORDS="~amd64 ~x86"
21     IUSE=""
22    
23     COMMON_DEPEND="dev-java/gnu-hylafax:0
24     dev-java/tablelayout:0"
25     RDEPEND="${COMMON_DEPEND} >=virtual/jre-1.6"
26     DEPEND="${COMMON_DEPEND} >=virtual/jdk-1.6 virtual/pkgconfig app-arch/unzip"
27    
28     S="${WORKDIR}/${PN}"
29    
30     JAVA_GENTOO_CLASSPATH="gnu-hylafax,tablelayout"
31     JAVA_SRC_DIR="src"
32    
33     src_prepare() {
34     rm build.xml || die
35     rm -rv "${S}"/jna-src "${S}"/mac-src || die # contains win32/mac only code
36    
37     cp -r java1-src/* src || die
38     cp -r java6-src/* src || die
39    
40     # this method is missing in the gnu-hylafax api despite they use the same upstream version
41     sed -i -e 's/client.setCharacterEncoding.*//g' src/yajhfc/HylaClientManager.java || die
42     }
43    
44     src_compile() {
45     java-pkg-simple_src_compile
46     pushd src || die
47     find -type f -not -name "*.java" -not -name "*.class" | xargs jar uf "${S}"/${PN}.jar || die
48     }
49    
50     src_install() {
51     java-pkg-simple_src_install
52     java-pkg_dolauncher ${PN} --jar ${PN}.jar --main yajhfc.Launcher
53     }

  ViewVC Help
Powered by ViewVC 1.1.20