summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-tex/fontpro/ChangeLog11
-rw-r--r--dev-tex/fontpro/Manifest5
-rw-r--r--dev-tex/fontpro/fontpro-20121224.ebuild119
-rw-r--r--dev-tex/fontpro/metadata.xml14
4 files changed, 149 insertions, 0 deletions
diff --git a/dev-tex/fontpro/ChangeLog b/dev-tex/fontpro/ChangeLog
new file mode 100644
index 000000000..84fe7a4c1
--- /dev/null
+++ b/dev-tex/fontpro/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-tex/fontpro
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*fontpro-20121224 (11 Jan 2013)
+*fontpro-20121216 (11 Jan 2013)
+
+ 11 Jan 2013; Moritz Schlarb (moschlar) <moschlar@metalabs.de>
+ +fontpro-20121216.ebuild, +fontpro-20121224.ebuild, +metadata.xml:
+ New Ebuild for bug #449474, thanks to hasufell, chithead and ulm.
+
diff --git a/dev-tex/fontpro/Manifest b/dev-tex/fontpro/Manifest
new file mode 100644
index 000000000..690654b4f
--- /dev/null
+++ b/dev-tex/fontpro/Manifest
@@ -0,0 +1,5 @@
+DIST AdbeRdr9.5.1-1_i486linux_enu.tar.bz2 57138807 SHA256 a6bcb881d5de4fb58c00fe24c3541122123881a3148a9feb0f62eda8dd82bca6 SHA512 2ec60b28ea93089dabdf0c766469c776d98e4cf305254ecf2377424d59590bd57d3d570c2c2d5aea2ff8fbe40cf356f1752d2f80cb45cd3e5945b631996b76ad WHIRLPOOL ee6c75b8170558817e4a3925a671f2f7aa795e4178d8922069927bc1d2897303f3bab2d329059bc458d2115ebf1e3fa8b5811340fd0277bad506b9a8d48254c7
+DIST fontpro-20121224.tar.gz 1791343 SHA256 fbe5998ba4fc9cc16564101e00e6c957f587a8cc6d049255d407b307082e312a SHA512 6c17278d4e8c4ced99bc1815d479a6ad0bb7005e8818f3c40bf3e33c5de1ab333ee0154ab1d18d6ba16b81170695c16482a75a1e8289559e63aee545fa8ec712 WHIRLPOOL 18f12b49153b9763ea7fa6f5a077db9594d7d7a412fd3afe0b4816e6d6dc34a18abda0447f30e2e968a443b8dd9ee56caba2646a3daaead490133ed1cfce4458
+EBUILD fontpro-20121224.ebuild 3047 SHA256 61e5c7c5410882f3f5c6d8b702b969df558fa27e94d1c2c829ed9905d438a711 SHA512 f8ea0dac3535b9fce03618bad657946d7affce475181d89747f568ce183cee0c32eff83c0a8a60b0846a37db5c7d28b28005fe93f33a68c1ed02aa3d881576bc WHIRLPOOL 7390839d7d6444c9f319ca796aca65ad7fc0f3b94fdd7415cceaff724a194499dd10d93543f725e348d18f3eeb98ee3e9f3ef5bac628ec41b43df8c0a2944cbd
+MISC ChangeLog 383 SHA256 e9ffd596beb89e063f85ac74e33b765bd3c5efe700138c57479637dd041ec969 SHA512 9ce6d829a6d9cbe618c6c738705889c4e87f6c62e7811284974f191f198a4b85721baae68a3e302cd035ef7a573edec4c3379c450c267c9ebd29ceefcd6881ae WHIRLPOOL dcbec23a0d2683d88f13a384051db5981e4e83087279084e5f8a04a8660a6f3b7349582f2dd25cea6f9924db652da9fdbf7e456197624fa1dd58ed61688c7573
+MISC metadata.xml 382 SHA256 fb4d3c7c4061afe45cdfa05fefc15b34184dc825a9e99b003782be8453a66b73 SHA512 74c6126a287cbf2566cdc569255279381f5a3ec29e31a99e962d3eb521e7ae27663573f92a0e6b9f8060a2296308349070ef8a59592bee239e8e9e284bdbf3df WHIRLPOOL 6b81c96be1b9f44e90b401bd3e6244c566548d61a0fdfadd19d35e4059b7b49b140520764860a02fe83ee072abdc15e160559a635322c56ac417952e027c0d23
diff --git a/dev-tex/fontpro/fontpro-20121224.ebuild b/dev-tex/fontpro/fontpro-20121224.ebuild
new file mode 100644
index 000000000..f1b5f1158
--- /dev/null
+++ b/dev-tex/fontpro/fontpro-20121224.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit vcs-snapshot latex-package
+
+ACROREAD_LICENSE="Adobe"
+ACROREAD_PV="9.5.1"
+ACROREAD_F="AdbeRdr${ACROREAD_PV}-1_i486linux_enu"
+ACROREAD_URI="http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${ACROREAD_PV}/enu/${ACROREAD_F}.tar.bz2"
+
+GIT_REV="0a71f88df83962518ba16a6111743522642c9fba"
+
+DESCRIPTION="LaTeX support for Adobe's Pro opentype fonts Minion Pro, Myriad Pro, Cronos Pro and possibly more"
+HOMEPAGE="https://github.com/sebschub/FontPro"
+SRC_URI="https://github.com/sebschub/FontPro/archive/${GIT_REV}.tar.gz -> ${P}.tar.gz
+ ${ACROREAD_URI}"
+
+LICENSE="public-domain ${ACROREAD_LICENSE}"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc +minionpro +myriadpro"
+REQUIRED_USE="|| ( minionpro myriadpro )"
+RESTRICT="mirror bindist"
+
+# dev-texlive/texlive-genericextra contains fltpoint.sty
+DEPEND="app-text/lcdf-typetools
+ app-text/texlive-core
+ dev-tex/fontaxes
+ dev-texlive/texlive-genericextra
+ minionpro? ( dev-tex/mnsymbol )
+ myriadpro? ( dev-tex/mdsymbol )
+ !dev-tex/MyriadPro
+ !dev-tex/MinionPro"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ vcs-snapshot_src_unpack
+
+ tar -xf "${WORKDIR}/${ACROREAD_F}/COMMON.TAR" Adobe/Reader9/Resource/Font \
+ || die "Failed to unpack COMMON.TAR."
+}
+
+prepare_font() {
+ einfo "Preparing ${1}..."
+
+ local my_s
+ my_s=${WORKDIR}/${1}
+ cp -r "${S}" "${my_s}" || die "cp failed"
+
+ # Copy otf files from Adobe Reader
+ mkdir "${my_s}/otf" || die "mkdir failed"
+ find "${WORKDIR}/Adobe/Reader9/Resource/Font/" -name "${1}*.otf" \
+ -exec cp '{}' "${my_s}/otf" ';' || die "cp failed"
+}
+
+src_prepare() {
+ use minionpro && prepare_font MinionPro
+ use myriadpro && prepare_font MyriadPro
+}
+
+compile_font() {
+ einfo "Compiling ${1}..."
+
+ local my_s
+ my_s=${WORKDIR}/${1}
+ cd "${my_s}" || die "cd failed"
+
+ ./scripts/makeall ${1} || die "makeall failed"
+}
+
+src_compile() {
+ use minionpro && compile_font MinionPro
+ use myriadpro && compile_font MyriadPro
+}
+
+install_font() {
+ einfo "Installing ${1}..."
+
+ local my_s
+ my_s=${WORKDIR}/${1}
+ cd "${my_s}" || die "cd failed"
+
+ ./scripts/install "${D}/${TEXMF}" || die "install failed"
+
+ # Prevent overwriting the already installed ls-R file on merge
+ rm "${D}/${TEXMF}/ls-R" || die "rm failed"
+
+ if use doc; then
+ # Inspired by latex-package.eclass
+ insinto "/usr/share/doc/${PF}"
+ doins "${SS}/tex/${1}.pdf"
+ dosym "/usr/share/doc/${PF}/${1}.pdf" "${TEXMF}/doc/latex/${1}/${1}.pdf"
+ fi
+}
+
+src_install() {
+ if use minionpro; then
+ install_font MinionPro
+ echo "MixedMap MinionPro.map" >> "${T}/${PN}.cfg"
+ fi
+
+ if use myriadpro; then
+ install_font MyriadPro
+ echo "MixedMap MyriadPro.map" >> "${T}/${PN}.cfg"
+ fi
+
+ insinto /etc/texmf/updmap.d
+ doins "${T}/${PN}.cfg"
+}
+
+pkg_postinst() {
+ latex-package_pkg_postinst
+
+ use minionpro && elog "To use MinionPro, put \\usepackage{MinionPro} in the preamble of your LaTeX document."
+ use myriadpro && elog "To use MyriadPro, put \\usepackage{MyriadPro} in the preamble of your LaTeX document."
+}
diff --git a/dev-tex/fontpro/metadata.xml b/dev-tex/fontpro/metadata.xml
new file mode 100644
index 000000000..c4d6fd2f6
--- /dev/null
+++ b/dev-tex/fontpro/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+
+<maintainer>
+ <email>maintainer-wanted@gentoo.org</email>
+</maintainer>
+
+<use>
+ <flag name="minionpro">Generate LaTeX support for the MinionPro font</flag>
+ <flag name="myriadpro">Generate LaTeX support for the Myriad Pro font</flag>
+</use>
+</pkgmetadata>