diff options
Diffstat (limited to 'app-text/dvipdfmx/dvipdfmx-20031110.ebuild')
-rw-r--r-- | app-text/dvipdfmx/dvipdfmx-20031110.ebuild | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/app-text/dvipdfmx/dvipdfmx-20031110.ebuild b/app-text/dvipdfmx/dvipdfmx-20031110.ebuild index ae1ced23412b..a7ee21c41163 100644 --- a/app-text/dvipdfmx/dvipdfmx-20031110.ebuild +++ b/app-text/dvipdfmx/dvipdfmx-20031110.ebuild @@ -1,16 +1,16 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/dvipdfmx/dvipdfmx-20031110.ebuild,v 1.4 2004/03/14 21:03:23 weeve Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/dvipdfmx/dvipdfmx-20031110.ebuild,v 1.5 2004/04/07 21:46:46 vapier Exp $ -IUSE="" +inherit eutils DESCRIPTION="DVI to PDF translator with multi-byte character support" -SRC_URI="http://project.ktug.or.kr/dvipdfmx/snapshot/release/${P}.tar.gz" HOMEPAGE="http://project.ktug.or.kr/dvipdfmx/" +SRC_URI="http://project.ktug.or.kr/dvipdfmx/snapshot/release/${P}.tar.gz" -KEYWORDS="x86 alpha ~sparc" -SLOT="0" LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 alpha ~sparc" DEPEND="app-text/ptex !app-text/tetex @@ -28,36 +28,26 @@ src_unpack() { epatch ${FILESDIR}/${PN}-config-gentoo.diff } -src_install () { +src_install() { einstall || die - - dodoc BUGS COPYING ChangeLog FONTMAP INSTALL README TODO + dodoc BUGS ChangeLog FONTMAP INSTALL README TODO } -pkg_postinst () { - - einfo - einfo "Automatically adding CMAPINPUTS to /usr/share/texmf/web2c/texmf.cnf" - if [ ! `grep -q CMAPINPUTS /usr/share/texmf/web2c/texmf.cnf` ]; then - cat >>/usr/share/texmf/web2c/texmf.cnf<<-EOF +pkg_postinst() { + if [ ! `grep -q CMAPINPUTS ${ROOT}/usr/share/texmf/web2c/texmf.cnf` ]; then + cat >>${ROOT}/usr/share/texmf/web2c/texmf.cnf<<-EOF % automatically added by ${PF}.ebuild -- do not edit by hand! CMAPINPUTS = .;/opt/Acrobat5/Resource/Font//;/usr/share/xpdf// % done EOF fi - - sleep 3 - einfo "Done." - einfo - mktexlsr } -pkg_postrm () { - if [ -e /usr/share/texmf/web2c/texmf.cnf ] ; then +pkg_postrm() { + if [ -e ${ROOT}/usr/share/texmf/web2c/texmf.cnf ] ; then sed -i -e "/${PF}\.ebuild/,+2d" \ - /usr/share/texmf/web2c/texmf.cnf + ${ROOT}/usr/share/texmf/web2c/texmf.cnf fi - mktexlsr } |