From 10c7344f6b3e219c704f9e8e4a92faf2f3de7ffc Mon Sep 17 00:00:00 2001 From: Jonathan Callen Date: Mon, 22 Feb 2010 20:48:29 +0000 Subject: Add prefix keywords, support; bump EAPI Package-Manager: portage--svn/cvs/Linux i686 --- app-text/xdvik/xdvik-22.84.16.ebuild | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'app-text/xdvik/xdvik-22.84.16.ebuild') diff --git a/app-text/xdvik/xdvik-22.84.16.ebuild b/app-text/xdvik/xdvik-22.84.16.ebuild index 4ea2b6f7e5d4..57e3f9203ef7 100644 --- a/app-text/xdvik/xdvik-22.84.16.ebuild +++ b/app-text/xdvik/xdvik-22.84.16.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/xdvik-22.84.16.ebuild,v 1.2 2010/01/09 13:22:12 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/xdvik-22.84.16.ebuild,v 1.3 2010/02/22 20:48:29 abcd Exp $ + +EAPI=3 inherit eutils flag-o-matic elisp-common toolchain-funcs @@ -8,7 +10,7 @@ DESCRIPTION="DVI previewer for X Window System" HOMEPAGE="http://xdvi.sourceforge.net/" SRC_URI="mirror://sourceforge/xdvi/${P}.tar.gz" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris" SLOT="0" LICENSE="GPL-2" IUSE="motif neXt Xaw3d emacs" @@ -26,9 +28,7 @@ DEPEND="${RDEPEND}" TEXMF_PATH=/usr/share/texmf S=${WORKDIR}/${P}/texk/xdvik -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { epatch "${FILESDIR}/${P}-open-mode.patch" epatch "${FILESDIR}/${P}-cvararg.patch" # Make sure system kpathsea headers are used @@ -36,7 +36,7 @@ src_unpack() { for i in *.h ; do echo "#include_next \"$i\"" > $i; done } -src_compile() { +src_configure() { cd "${WORKDIR}/${P}" tc-export CC AR RANLIB @@ -58,22 +58,23 @@ src_compile() { --enable-gf \ --with-system-t1lib \ --with-system-kpathsea \ - --with-kpathsea-include=/usr/include/kpathsea \ + --with-kpathsea-include="${EPREFIX}"/usr/include/kpathsea \ --with-xdvi-x-toolkit="${toolkit}" +} - cd "${S}" - emake kpathsea_dir="/usr/include/kpathsea" texmf="${TEXMF_PATH}" || die +src_compile() { + emake kpathsea_dir="${EPREFIX}/usr/include/kpathsea" texmf="${EPREFIX}${TEXMF_PATH}" || die use emacs && elisp-compile xdvi-search.el } src_install() { - einstall kpathsea_dir="/usr/include/kpathsea" texmf="${D}${TEXMF_PATH}" || die "install failed" + einstall kpathsea_dir="${EPREFIX}/usr/include/kpathsea" texmf="${ED}${TEXMF_PATH}" || die "install failed" dodir /etc/texmf/xdvi /etc/X11/app-defaults - mv "${D}${TEXMF_PATH}/xdvi/XDvi" "${D}etc/X11/app-defaults" || die "failed to move config file" + mv "${ED}${TEXMF_PATH}/xdvi/XDvi" "${ED}etc/X11/app-defaults" || die "failed to move config file" dosym {/etc/X11/app-defaults,"${TEXMF_PATH}/xdvi"}/XDvi || die "failed to symlink config file" - for i in $(find "${D}${TEXMF_PATH}/xdvi" -type f -maxdepth 1) ; do - mv ${i} "${D}etc/texmf/xdvi" || die "failed to move $i" + for i in $(find "${ED}${TEXMF_PATH}/xdvi" -type f -maxdepth 1) ; do + mv ${i} "${ED}etc/texmf/xdvi" || die "failed to move $i" dosym {/etc/texmf,"${TEXMF_PATH}"}/xdvi/$(basename ${i}) || die "failed to symlink $i" done @@ -83,13 +84,13 @@ src_install() { doicon "${FILESDIR}/${PN}.png" make_desktop_entry xdvi "XDVI" xdvik "Graphics;Viewer" - echo "MimeType=application/x-dvi;" >> "${D}"usr/share/applications/xdvi-"${PN}".desktop + echo "MimeType=application/x-dvi;" >> "${ED}"usr/share/applications/xdvi-"${PN}".desktop } pkg_postinst() { if use emacs; then elog "Add" - elog " (add-to-list 'load-path \"${SITELISP}/tex-utils\")" + elog " (add-to-list 'load-path \"${EPREFIX}${SITELISP}/tex-utils\")" elog " (require 'xdvi-search)" elog "to your ~/.emacs file" fi -- cgit v1.2.3-65-gdbad