/[gentoo-x86]/app-editors/jedit/jedit-5.0.0.ebuild
Gentoo

Contents of /app-editors/jedit/jedit-5.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Fri Jan 3 20:27:46 2014 UTC (6 years, 7 months ago) by nimiux
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
Stable for amd64 wrt bug #494344

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

1 nimiux 1.5 # Copyright 1999-2014 Gentoo Foundation
2 sera 1.1 # Distributed under the terms of the GNU General Public License v2
3 nimiux 1.5 # $Header: /var/cvsroot/gentoo-x86/app-editors/jedit/jedit-5.0.0.ebuild,v 1.4 2013/12/24 12:51:44 ago Exp $
4 sera 1.1
5     EAPI=5
6    
7     JAVA_PKG_IUSE="doc test"
8    
9     inherit java-pkg-2 java-ant-2 eutils fdo-mime
10    
11     DESCRIPTION="Programmer's editor written in Java"
12     HOMEPAGE="http://www.jedit.org"
13     SRC_URI="mirror://sourceforge/${PN}/${PN}${PV}source.tar.bz2"
14    
15     LICENSE="GPL-2"
16 nimiux 1.5 KEYWORDS="amd64 ppc ppc64 x86"
17 sera 1.1 SLOT="0"
18     IUSE=""
19    
20     # missing from tarball
21     RESTRICT="test"
22    
23     COMMON_DEP="
24     dev-java/jsr305:0"
25     RDEPEND="${COMMON_DEP}
26     >=virtual/jre-1.6"
27     DEPEND="${COMMON_DEP}
28     >=virtual/jdk-1.6
29     dev-java/ant-apache-bsf:0
30     dev-java/ant-contrib:0
31     dev-java/bsh[bsf]
32     test? (
33     dev-java/ant-junit:0
34     )"
35    
36     S="${WORKDIR}/jEdit"
37    
38     JEDIT_HOME="/usr/share/${PN}"
39    
40     java_prepare() {
41     mkdir -p lib/{ant-contrib,compile,default-plugins,scripting} || die
42    
43     # don't unconditionally run tests (which aren't even shipped)
44     sed -i -e 's|\(depends="init,retrieve,setup,compile\),test|\1|' \
45     build.xml || die
46     }
47    
48     JAVA_ANT_REWRITE_CLASSPATH="true"
49    
50     EANT_ANT_TASKS="ant-apache-bsf ant-contrib bsh"
51     EANT_GENTOO_CLASSPATH="jsr305"
52     EANT_EXTRA_ARGS="-Divy.jar.present=true -Divy.done=true"
53     EANT_BUILD_TARGET="build"
54     # TODO could build more docs, ie generate-doc-faq generate-doc-news
55     # generate-doc-users-guide ua.
56     EANT_DOC_TARGET="generate-javadoc"
57     # in fact needed only for docs, but shouldn't hurt
58     EANT_NEEDS_TOOLS="true"
59    
60     src_test() {
61     java-pkg-2_src_test
62     }
63    
64     src_install () {
65     dodir ${JEDIT_HOME}
66     cp -R build/${PN}.jar jars doc keymaps macros modes properties startup \
67     "${D}${JEDIT_HOME}" || die
68    
69     java-pkg_regjar ${JEDIT_HOME}/${PN}.jar
70    
71     java-pkg_dolauncher ${PN} --main org.gjt.sp.jedit.jEdit
72    
73     use doc && java-pkg_dojavadoc build/classes/javadoc/api
74    
75     make_desktop_entry ${PN} \
76     jEdit \
77     ${JEDIT_HOME}/doc/${PN}.png \
78     "Development;Utility;TextEditor"
79    
80     # keep the plugin directory
81     keepdir ${JEDIT_HOME}/jars
82     }
83    
84     pkg_postinst() {
85     fdo-mime_desktop_database_update
86     elog "The system directory for jEdit plugins is"
87     elog "${JEDIT_HOME}/jars"
88     elog "If you get plugin related errors on startup, first try updating them."
89     }
90    
91     pkg_postrm() {
92     if [[ -z ${REPLACED_BY_VERSION} ]]; then
93     fdo-mime_desktop_database_update
94     elog "jEdit plugins installed into /usr/share/jedit/jars"
95     elog "(after installation of jEdit itself) haven't been"
96     elog "removed. To get rid of jEdit completely, you may"
97     elog "want to run"
98     elog ""
99     elog " rm -r ${JEDIT_HOME}"
100     fi
101     }

  ViewVC Help
Powered by ViewVC 1.1.20