/[gentoo-x86]/dev-util/deskzilla/deskzilla-1.7.1-r1.ebuild
Gentoo

Contents of /dev-util/deskzilla/deskzilla-1.7.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Aug 10 21:26:39 2014 UTC (4 years, 4 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/deskzilla/deskzilla-1.7.1-r1.ebuild,v 1.1 2014/03/02 07:30:00 ercpe Exp $
4
5 EAPI=5
6
7 inherit java-pkg-2 versionator
8
9 DESCRIPTION="A desktop client for Mozilla's Bugzilla bug tracking system"
10 HOMEPAGE="http://almworks.com/deskzilla"
11
12 MY_PV=$(replace_all_version_separators '_') #${PV/beta/b})
13 MY_P="${PN}-${MY_PV}"
14 S="${WORKDIR}/${MY_P}"
15 SRC_URI="http://d1.almworks.com/.files/${MY_P}_without_jre.tar.gz
16 http://dev.gentoo.org/~ercpe/distfiles/${CATEGORY}/${PN}/deskzilla_gentoo.license"
17 LICENSE="ALMWorks-1.2"
18 # license does not allow redistributing, and they seem to silently update
19 # distfiles...
20 RESTRICT="mirror"
21 SLOT="0"
22 KEYWORDS="~amd64 ~ppc ~x86"
23 IUSE=""
24
25 DEPEND=""
26 RDEPEND=">=virtual/jre-1.5
27 dev-java/picocontainer:1
28 dev-java/javolution:4
29 >=dev-java/commons-codec-1.3
30 >=dev-java/jgoodies-forms-1.0.7
31 >=dev-java/commons-logging-1.0.4
32 >=dev-java/xmlrpc-2.0.1
33 dev-java/xerces:2
34 dev-java/itext:0
35 dev-java/jazzy:0"
36
37 src_unpack() {
38 unpack ${A}
39 # Remove external unaltered bundled jars
40 local lib="${S}/lib"
41 local liborig="${S}/lib.orig"
42 mv ${lib} ${liborig} || die
43 mkdir ${lib} || die
44 # They've patched commons-httpclient (was version 3.0)
45 mv ${liborig}/commons-httpclient.jar ${lib} || die
46 # They've patched nekohtml (was version 0.9.5)
47 mv ${liborig}/nekohtml.jar ${lib} || die
48 # Also jdom (was 1.0), soon they will patch everything and we will just unpack, yay
49 mv ${liborig}/pjdom.jar ${lib} || die
50 # Almworks proprietary lib
51 mv ${liborig}/almworks-tracker-api.jar ${lib} || die
52 # IntelliJ IDEA proprietary lib
53 mv ${liborig}/forms_rt.jar ${lib} || die
54 # God knows what's this. Anyway, proprietary.
55 mv ${liborig}/twocents.jar ${lib} || die
56 rm -rf ${liborig} || die
57 }
58
59 src_install () {
60 local dir="/opt/${PN}"
61
62 insinto "${dir}"
63 doins -r components etc license lib log deskzilla.url
64 insinto "${dir}/license"
65 doins "${DISTDIR}"/deskzilla_gentoo.license
66
67 java-pkg_jarinto "${dir}"
68 java-pkg_dojar ${PN}.jar
69 local dep="xerces-2,picocontainer-1,commons-logging,commons-codec"
70 dep+=",jgoodies-forms,javolution-4,xmlrpc,itext,jazzy"
71 java-pkg_register-dependency ${dep}
72 java-pkg_dolauncher ${PN} --main "com.almworks.launcher.Launcher" --java_args "-Xmx256M"
73
74 newdoc README.txt README || die
75 newdoc RELEASE.txt RELEASE || die
76
77 doicon deskzilla.png
78 make_desktop_entry deskzilla "Deskzilla" deskzilla "Development"
79 }
80
81 pkg_postinst() {
82 elog "The default, evaluation license allows usage for one month."
83 elog "You may switch (per-user) to the license we obtained for Gentoo,"
84 elog "located in /opt/${PN}/license/${PN}_gentoo.license"
85 elog "It is locked to Gentoo, ALM Works and Mozilla bugzilla only."
86 elog "Note that you need to use 1.5 VM to run deskzilla when setting"
87 elog "license or it won't get set due to bug in 1.6+ VMs."
88 elog
89 elog "If you are going to use Deskzilla for an open source project,"
90 elog "you can similarly request your own free license:"
91 elog "http://almworks.com/opensource.html?product=deskzilla"
92 }

  ViewVC Help
Powered by ViewVC 1.1.20