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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Mar 2 07:30:00 2014 UTC (4 years, 4 months ago) by ercpe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Moved gentoo license from FILESDIR to mirror system (bug #373271)

Dropped 1.6.1 because the distfile isn't available on upstream servers

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

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

  ViewVC Help
Powered by ViewVC 1.1.20