forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dvipdfmx-20110311-r1.ebuild
59 lines (49 loc) · 1.83 KB
/
dvipdfmx-20110311-r1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=3
inherit autotools eutils texlive-common flag-o-matic toolchain-funcs
DESCRIPTION="DVI to PDF translator with multi-byte character support"
HOMEPAGE="http://project.ktug.or.kr/dvipdfmx/"
SRC_URI="http://project.ktug.or.kr/${PN}/snapshot/latest/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
IUSE=""
DEPEND="app-text/libpaper
>=media-libs/libpng-1.2:0
sys-libs/zlib
dev-libs/kpathsea
app-text/libpaper"
RDEPEND="${DEPEND}
virtual/tex-base
>=app-text/poppler-0.12.3-r3
app-text/poppler-data"
DEPEND="${DEPEND}
virtual/pkgconfig"
src_prepare() {
epatch "${FILESDIR}"/20090708-fix_file_collisions.patch
sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in || die
eautoreconf
has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
}
src_install() {
# Override dvipdfmx.cfg default installation location so that it is easy to
# modify it and it gets config protected. Symlink it from the old location.
emake configdatadir="${EPREFIX}/etc/texmf/dvipdfmx" \
glyphlistdatadir="${EPREFIX}/usr/share/texmf-site/fonts/map/glyphlist" \
mapdatadir="${EPREFIX}/usr/share/texmf-site/fonts/map/dvipdfmx" \
DESTDIR="${D}" \
install || die
dosym /etc/texmf/dvipdfmx/dvipdfmx.cfg /usr/share/texmf-site/dvipdfmx/dvipdfmx.cfg || die
# Symlink poppler-data cMap, bug #201258
dosym /usr/share/poppler/cMap /usr/share/texmf-site/fonts/cmap/cMap || die
dodoc AUTHORS ChangeLog README || die
# Remove symlink conflicting with app-text/dvipdfm (bug #295235)
rm "${ED}"/usr/bin/ebb
}
pkg_postinst() {
etexmf-update
}
pkg_postrm() {
etexmf-update
}