linamh/app-editors/xxe/xxe-4.0.0.ebuild

75 lines
2.1 KiB
Bash
Raw Normal View History

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
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/xmleditor/_download/${PN}-perso-${MY_PV}.tar.gz
doc? ( http://www.xmlmind.com/xmleditor/_download/${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
}