/[gentoo-x86]/dev-tex/tipa/tipa-1.3.ebuild
Gentoo

Contents of /dev-tex/tipa/tipa-1.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Dec 11 07:35:59 2008 UTC (5 years, 7 months ago) by aballier
Branch: MAIN
Changes since 1.4: +2 -1 lines
add RDEPEND=DEPEND, should fix bug #250580
(Portage version: 2.2_rc17/cvs/Linux 2.6.27.8 x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-tex/tipa/tipa-1.3.ebuild,v 1.4 2008/09/04 21:15:30 aballier Exp $
4
5 DESCRIPTION="International Phonetic Alphabet package for LaTeX"
6 HOMEPAGE="http://www.l.u-tokyo.ac.jp/~fkr/"
7 SRC_URI="http://www.l.u-tokyo.ac.jp/~fkr/tipa/${P}.tar.gz"
8
9 LICENSE="LPPL-1.2"
10 SLOT="0"
11 KEYWORDS="~x86 ~amd64"
12
13 IUSE=""
14
15 DEPEND="virtual/latex-base"
16 RDEPEND="${DEPEND}"
17
18 src_compile() {
19 # install files under /usr/share/texmf/
20 sed -e 's@PREFIX=/usr/local/teTeX/share/texmf@PREFIX=/usr/share/texmf@' \
21 -i Makefile || die "sed failed"
22
23 sed -e 's/\($(TEXDIR)\)/$(DESTDIR)\/\1/' \
24 -e 's/\($(FONTDIR)\)/$(DESTDIR)\/\1/g' \
25 -e 's/\($(MAPDIR)\)/$(DESTDIR)\/\1/' \
26 -i Makefile || die "sed failed"
27
28 # removing `mktexlsr` from Makefile (leads to access violation)
29 sed -e 's/-mktexlsr//' -i Makefile || die "sed failed"
30 }
31
32 src_install() {
33 make DESTDIR=${D} install || die "make install failed."
34 dodoc doc/*.{tex,sty,bib,bbl} || die "dodoc failed."
35
36 elog "A huge documentation can be found in '/usr/share/doc/${P}'."
37 }
38
39 pkg_postinst() {
40 einfo "Running mktexlsr..."
41 mktexlsr || die "mktexlsr failed"
42
43 elog
44 elog "Append the line"
45 elog "p +tipa.map"
46 elog "to /usr/share/texmf/dvips/config/config.ps"
47 elog
48 }
49
50 pkg_postrm() {
51 einfo "Running mktexlsr..."
52 mktexlsr || die "mktexlsr failed"
53 }

  ViewVC Help
Powered by ViewVC 1.1.20