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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Aug 8 00:36:33 2015 UTC (4 years, 11 months ago) by sping
Branch: MAIN
CVS Tags: HEAD
app-editors/jedit: 5.2.0 (bug #552764)

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x401A1600)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/jedit/jedit-5.0.0.ebuild,v 1.5 2014/01/03 20:27:46 nimiux Exp $
4
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="BSD GPL-2"
16 KEYWORDS="~amd64 ~ppc ~x86"
17 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.7"
27 DEPEND="${COMMON_DEP}
28 >=virtual/jdk-1.7
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 epatch "${FILESDIR}"/${P}-build-xml.patch
44 }
45
46 JAVA_ANT_REWRITE_CLASSPATH="true"
47
48 EANT_ANT_TASKS="ant-apache-bsf ant-contrib bsh"
49 EANT_GENTOO_CLASSPATH="jsr305"
50 EANT_EXTRA_ARGS="-Divy.jar.present=true -Divy.done=true"
51 EANT_BUILD_TARGET="build"
52 # TODO could build more docs, ie generate-doc-faq generate-doc-news
53 # generate-doc-users-guide ua.
54 EANT_DOC_TARGET="generate-javadoc"
55 # in fact needed only for docs, but shouldn't hurt
56 EANT_NEEDS_TOOLS="true"
57
58 src_test() {
59 java-pkg-2_src_test
60 }
61
62 src_install () {
63 dodir ${JEDIT_HOME}
64 cp -R build/${PN}.jar jars doc keymaps macros modes properties startup \
65 "${D}${JEDIT_HOME}" || die
66
67 java-pkg_regjar ${JEDIT_HOME}/${PN}.jar
68
69 java-pkg_dolauncher ${PN} --main org.gjt.sp.jedit.jEdit
70
71 use doc && java-pkg_dojavadoc build/classes/javadoc/api
72
73 make_desktop_entry ${PN} \
74 jEdit \
75 ${JEDIT_HOME}/doc/${PN}.png \
76 "Development;Utility;TextEditor"
77
78 # keep the plugin directory
79 keepdir ${JEDIT_HOME}/jars
80 }
81
82 pkg_postinst() {
83 fdo-mime_desktop_database_update
84 elog "The system directory for jEdit plugins is"
85 elog "${JEDIT_HOME}/jars"
86 elog "If you get plugin related errors on startup, first try updating them."
87 }
88
89 pkg_postrm() {
90 if [[ -z ${REPLACED_BY_VERSION} ]]; then
91 fdo-mime_desktop_database_update
92 elog "jEdit plugins installed into /usr/share/jedit/jars"
93 elog "(after installation of jEdit itself) haven't been"
94 elog "removed. To get rid of jEdit completely, you may"
95 elog "want to run"
96 elog ""
97 elog " rm -r ${JEDIT_HOME}"
98 fi
99 }

  ViewVC Help
Powered by ViewVC 1.1.20