summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2010-10-19 12:30:22 +0000
committerPeter Volkov <pva@gentoo.org>2010-10-19 12:30:22 +0000
commitc242db243f5e268d286b913308231c16d7849fad (patch)
tree21f7627bd65647dd90f52f83f0d8a63cdf13492a /media-fonts/culmus
parentoups... (diff)
downloadgentoo-2-c242db243f5e268d286b913308231c16d7849fad.tar.gz
gentoo-2-c242db243f5e268d286b913308231c16d7849fad.tar.bz2
gentoo-2-c242db243f5e268d286b913308231c16d7849fad.zip
Version bump. Add fancy USE flag to install fancy fonts, merge in culmus-ancient fonts and add taamey fonts. Add fontforge USE flag to rebuild ttf fonts.
(Portage version: 2.1.9.18/cvs/Linux x86_64)
Diffstat (limited to 'media-fonts/culmus')
-rw-r--r--media-fonts/culmus/ChangeLog10
-rw-r--r--media-fonts/culmus/culmus-0.110.ebuild155
-rw-r--r--media-fonts/culmus/metadata.xml6
3 files changed, 170 insertions, 1 deletions
diff --git a/media-fonts/culmus/ChangeLog b/media-fonts/culmus/ChangeLog
index 3ba3ab96e420..05bd478448c0 100644
--- a/media-fonts/culmus/ChangeLog
+++ b/media-fonts/culmus/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-fonts/culmus
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-fonts/culmus/ChangeLog,v 1.52 2010/09/10 06:57:32 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/culmus/ChangeLog,v 1.53 2010/10/19 12:30:22 pva Exp $
+
+*culmus-0.110 (19 Oct 2010)
+
+ 19 Oct 2010; Peter Volkov <pva@gentoo.org> +culmus-0.110.ebuild,
+ metadata.xml:
+ Version bump. Add fancy USE flag to install fancy fonts, merge in
+ culmus-ancient fonts and add taamey fonts. Add fontforge USE flag to
+ rebuild ttf fonts.
*culmus-0.105-r2 (10 Sep 2010)
diff --git a/media-fonts/culmus/culmus-0.110.ebuild b/media-fonts/culmus/culmus-0.110.ebuild
new file mode 100644
index 000000000000..aa87defc85d3
--- /dev/null
+++ b/media-fonts/culmus/culmus-0.110.ebuild
@@ -0,0 +1,155 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/culmus/culmus-0.110.ebuild,v 1.1 2010/10/19 12:30:22 pva Exp $
+
+EAPI="2"
+
+inherit font
+
+# Maintainer: also check culmus.conf file in ${P}.tar.gz
+
+MY_A_P=AncientSemiticFonts-0.06-1
+
+DESCRIPTION="Hebrew Type1 fonts"
+HOMEPAGE="http://culmus.sourceforge.net/"
+
+FANCY_FONTS="journal hillel anka comix gan ozrad ktav-yad dorian gladia"
+FANCY_YG_FONTS="ShmuelCLM MakabiYG"
+TAAMEY_FONTS="TaameyDavidCLM TaameyFrankCLM KeterAramTsova KeterYG"
+
+SRC_URI="mirror://sourceforge/culmus/${P}.tar.gz
+ fontforge? ( mirror://sourceforge/culmus/${PN}-src-${PV}.tar.gz )
+ ancient? ( !fontforge? ( mirror://sourceforge/culmus/${MY_A_P}.TTF.tgz )
+ fontforge? ( mirror://sourceforge/culmus/${MY_A_P}.tgz ) )"
+SRC_URI+=" fancy? ( $(printf "http://culmus.sourceforge.net/fancy/%s.tar.gz " ${FANCY_FONTS}) )"
+SRC_URI+=" fancy? ( $(printf "http://culmus.sourceforge.net/fancy-yg/%s.zip " ${FANCY_YG_FONTS}) )"
+SRC_URI+=" taamey? ( $(printf "http://culmus.sourceforge.net/taamim/%s.zip " ${TAAMEY_FONTS}) )"
+
+# Some fonts are available in otf format too. Do we need them?
+# http://culmus.sourceforge.net/fancy/anka-otf.zip
+# http://culmus.sourceforge.net/fancy/hillel-otf.zip
+# http://culmus.sourceforge.net/fancy/journal-otf.zip
+
+LICENSE="|| ( GPL-2 LICENSE-BITSTREAM ) ancient? ( MIT ) fancy? ( GPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="ancient fancy fontforge taamey"
+
+FONT_CONF=( "${FILESDIR}/65-culmus.conf" )
+
+DEPEND="!media-fonts/culmus-ancient"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}
+# Put all fonts, generated or not here
+FONT_S=${S}/FONTS
+
+src_unpack() {
+ unpack ${P}.tar.gz # For type1 fonts...
+ use fontforge && unpack ${PN}-src-${PV}.tar.gz
+
+ use ancient && unpack ${MY_A_P}$(use fontforge || echo .TTF).tgz
+
+ if use fancy; then
+ unpack $(printf "%s.tar.gz " ${FANCY_FONTS})
+ unpack $(printf "%s.zip " ${FANCY_YG_FONTS})
+ mv TTF/* .
+ fi
+
+ if use taamey; then
+ for font in ${TAAMEY_FONTS}; do
+ mkdir ${font}
+ pushd ${font}
+ unpack ${font}.zip
+ popd >/dev/null
+ done
+ fi
+}
+
+src_compile() {
+ mkdir -p "${FONT_S}"
+ if use fontforge; then
+ pushd ${P}
+ mv *.afm *.pfa "${FONT_S}"
+ rm *.ttf
+ popd >/dev/null
+ pushd ${PN}-src-${PV}
+ for f in *.sfd; do
+ "${WORKDIR}"/${PN}-src-${PV}/GenerateTTF.pe ${f} "${FONT_S}" || die
+ done
+ popd >/dev/null
+
+ if use ancient; then
+ pushd ${MY_A_P}/src
+ export FONTFORGE_LANGUAGE=ff
+ make clean
+ make all || die "Failed to build fonts"
+ mv *.ttf "${FONT_S}"
+ popd >/dev/null
+ fi
+
+ if use taamey; then
+ for font in ${TAAMEY_FONTS}; do
+ rm -rf ${font}/TTF
+ pushd ${font}/SFD
+ for f in *.sfd; do
+ "${WORKDIR}"/${PN}-src-${PV}/GenerateTTF.pe ${f} "${FONT_S}" || die
+ done
+ popd >/dev/null
+ done
+ fi
+ else
+ pushd ${P}
+ mv *.afm *.pfa *.ttf "${FONT_S}"
+ popd >/dev/null
+
+ if use ancient; then
+ pushd ${MY_A_P}$(use fontforge || echo .TTF)/fonts
+ mv *.ttf "${FONT_S}"
+ popd >/dev/null
+ fi
+
+ if use taamey; then
+ for font in ${TAAMEY_FONTS}; do
+ pushd ${font}/TTF
+ mv *.ttf "${FONT_S}"
+ popd >/dev/null
+ done
+ fi
+ fi
+
+ use fancy && mv *.afm *.pfa *.ttf "${FONT_S}"
+}
+
+src_install() {
+ FONT_SUFFIX="pfa $(use fancy && echo afm ttf)" \
+ font_src_install
+
+ rm -rf "${FONT_S}"
+ find "${WORKDIR}" -name '*.ttf' -o -name '*.pfa' -o -name '*.pfm' |
+ while read font; do
+ ewarn "QA: missed font file: ${font}"
+ done
+
+ pushd ${PN}$(use fontforge && echo -src)-${PV}
+ dodoc CHANGES || die
+ popd >/dev/null
+
+ if use ancient; then
+ pushd "${WORKDIR}/${MY_A_P}$(use fontforge || echo .TTF)/"
+ newdoc CHANGES{,.ancient} || die
+ newdoc README{,.ancient} || die
+ popd >/dev/null
+ fi
+
+ if use taamey; then
+ for font in ${TAAMEY_FONTS}; do
+ pushd ${font}
+ [[ -f ChangeLog ]] && { newdoc ChangeLog{,.${font}} || die; }
+ newdoc README{,.${font}} || die
+ insinto /usr/share/doc/${PF}/${font}
+ doins -r Samples
+ popd >/dev/null
+ done
+ fi
+}
diff --git a/media-fonts/culmus/metadata.xml b/media-fonts/culmus/metadata.xml
index 696065edd338..04682e81d6ef 100644
--- a/media-fonts/culmus/metadata.xml
+++ b/media-fonts/culmus/metadata.xml
@@ -2,4 +2,10 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>fonts</herd>
+<use>
+<flag name='ancient'>Install ancient semitic scripts</flag>
+<flag name='fancy'>Install fancy fonts</flag>
+<flag name='fontforge'>Use <pkg>media-gfx/fontforge</pkg> to build fonts from source</flag>
+<flag name='taamey'>Install taamey fonts</flag>
+</use>
</pkgmetadata>