blob: 53b6fcbb034c293a8ab4711aaefe0b00d085b217 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/xxe/xxe-4.3.0.ebuild,v 1.2 2009/11/21 12:36:16 patrick Exp $
MY_PV="${PV//./_}"
MY_PV="${MY_PV/_p/p}"
S="${WORKDIR}/${PN}-perso-${MY_PV}"
ADDON_LIST="batik_imagetoolkit jimi_imagetoolkit dav_vdrive ftp_vdrive jeuclid_imagetoolkit mathml_config"
ADDON_LIST="${ADDON_LIST} dita_dtd_config sample_customize_xxe sdocbook_config slides_config wxs_config"
ADDON_LIST="${ADDON_LIST} xep_foprocessor fop1_foprocessor xfc_foprocessor xxe-devdocs xxe-docsrc xxe_config_pack"
DESCRIPTION="The XMLmind XML Editor"
for i in ${ADDON_LIST}
do
SRC_URI_ADDON="${SRC_URI_ADDON} http://www.xmlmind.com/xmleditor/_download/${i}-${MY_PV}.zip"
done
SRC_URI="http://www.xmlmind.com/archive/xmleditor/4.3.0_01/${PN}-perso-${MY_PV}.tar.gz
doc? ( http://www.xmlmind.com/archive/xmleditor/4.3.0_01/${PN}-devdocs-${MY_PV}.tar.gz )
!minimal? ( ${SRC_URI_ADDON} )"
HOMEPAGE="http://www.xmlmind.com/xmleditor/index.html"
IUSE="doc minimal"
SLOT="0"
LICENSE="as-is"
KEYWORDS="~x86 ~ppc ~amd64"
RESTRICT="strip mirror"
RDEPEND=">=virtual/jre-1.4.1"
DEPEND=""
INSTALLDIR=/opt/${PN}
src_install() {
dodir ${INSTALLDIR}
cp -pPR "${S}"/* "${D}"/${INSTALLDIR}
dodir /etc/env.d
echo -e "PATH=${INSTALLDIR}/bin\nROOTPATH=${INSTALLDIR}" > "${D}"/etc/env.d/10xxe
insinto /usr/share/applications
doins "${FILESDIR}"/xxe.desktop
if ( use doc )
then
dodir /usr/share/doc/${PF}
cp -R "${WORKDIR}"/doc/* "${D}"/usr/share/doc/${PF}
mv "${D}"/${INSTALLDIR}/doc/* "${D}"/usr/share/doc/${PF}
fi
rm -rf "${D}"/${INSTALLDIR}/doc
if ( ! use minimal )
then
for i in ${ADDON_LIST}
do
cp -R "${WORKDIR}"/$i "${D}"/opt/xxe/addon
done
fi
# apt_format
}
pkg_postinst() {
einfo
einfo "XXE has been installed in /opt/xxe, to include this"
einfo "in your path, run the following:"
eerror " /usr/sbin/env-update && source /etc/profile"
einfo
ewarn "If you need special/accented characters, you'll need to export LANG"
ewarn "to your locale. Example: export LANG=es_ES.ISO8859-1"
ewarn "See http://www.xmlmind.com/xmleditor/user_faq.html#linuxlocale"
einfo
}
|