summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Callen <abcd@gentoo.org>2010-02-22 20:48:29 +0000
committerJonathan Callen <abcd@gentoo.org>2010-02-22 20:48:29 +0000
commitb92f883f9b87e7fb63194ebf64ea387d357fad25 (patch)
tree0a7657588680c620beea2e03f20e06dbf7da696c /app-text/xdvik
parentDrop m68k keyword, none of the dependencies has it. (diff)
downloadgentoo-2-b92f883f9b87e7fb63194ebf64ea387d357fad25.tar.gz
gentoo-2-b92f883f9b87e7fb63194ebf64ea387d357fad25.tar.bz2
gentoo-2-b92f883f9b87e7fb63194ebf64ea387d357fad25.zip
Add prefix keywords, support; bump EAPI
(Portage version: -svn/cvs/Linux i686)
Diffstat (limited to 'app-text/xdvik')
-rw-r--r--app-text/xdvik/ChangeLog5
-rw-r--r--app-text/xdvik/xdvik-22.84.16.ebuild31
2 files changed, 20 insertions, 16 deletions
diff --git a/app-text/xdvik/ChangeLog b/app-text/xdvik/ChangeLog
index 2a57e2061203..b72f03d4591b 100644
--- a/app-text/xdvik/ChangeLog
+++ b/app-text/xdvik/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-text/xdvik
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/ChangeLog,v 1.65 2010/01/09 13:22:12 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/ChangeLog,v 1.66 2010/02/22 20:48:29 abcd Exp $
+
+ 22 Feb 2010; Jonathan Callen <abcd@gentoo.org> xdvik-22.84.16.ebuild:
+ Add prefix keywords, support; bump EAPI
09 Jan 2010; Alexis Ballier <aballier@gentoo.org> xdvik-22.84.16.ebuild,
+files/xdvik-22.84.16-cvararg.patch:
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