summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Alfredsen <loki_val@gentoo.org>2009-04-21 21:35:02 +0000
committerPeter Alfredsen <loki_val@gentoo.org>2009-04-21 21:35:02 +0000
commitcd74fe94177f82ddf22c2a96375d30a41ca912e8 (patch)
tree07f0e8773ba97a2c71973964dd585321e7821d9e /media-gfx/fontforge
parentwhitespace (diff)
downloadgentoo-2-cd74fe94177f82ddf22c2a96375d30a41ca912e8.tar.gz
gentoo-2-cd74fe94177f82ddf22c2a96375d30a41ca912e8.tar.bz2
gentoo-2-cd74fe94177f82ddf22c2a96375d30a41ca912e8.zip
Provide pango and cairo use-flags and deps, bug 266868.
(Portage version: 2.2_rc28/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/fontforge')
-rw-r--r--media-gfx/fontforge/ChangeLog8
-rw-r--r--media-gfx/fontforge/fontforge-20090408-r1.ebuild115
-rw-r--r--media-gfx/fontforge/metadata.xml2
3 files changed, 124 insertions, 1 deletions
diff --git a/media-gfx/fontforge/ChangeLog b/media-gfx/fontforge/ChangeLog
index cc2d87f487f8..bc75c439063d 100644
--- a/media-gfx/fontforge/ChangeLog
+++ b/media-gfx/fontforge/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-gfx/fontforge
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/fontforge/ChangeLog,v 1.106 2009/04/09 04:48:28 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/fontforge/ChangeLog,v 1.107 2009/04/21 21:35:02 loki_val Exp $
+
+*fontforge-20090408-r1 (21 Apr 2009)
+
+ 21 Apr 2009; Peter Alfredsen <loki_val@gentoo.org>
+ +fontforge-20090408-r1.ebuild:
+ Provide pango and cairo use-flags and deps, bug 266868.
*fontforge-20090408 (09 Apr 2009)
diff --git a/media-gfx/fontforge/fontforge-20090408-r1.ebuild b/media-gfx/fontforge/fontforge-20090408-r1.ebuild
new file mode 100644
index 000000000000..90ad338079b0
--- /dev/null
+++ b/media-gfx/fontforge/fontforge-20090408-r1.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/fontforge/fontforge-20090408-r1.ebuild,v 1.1 2009/04/21 21:35:02 loki_val Exp $
+
+# Some notes for maintainers this package:
+# 1. README-unix: freetype headers are required to make use of truetype debugger
+# in fontforge.
+# 2. --enable-{double,longdouble} these just make ff use more storage space. In
+# normal fonts neither is useful. Leave off.
+# 3. FontForge autodetects libraries but does not link with them. They are
+# dynamically loaded at run time if fontforge found them at build time.
+# --with-regular-link disables this behaviour. No reason to make it optional for
+# users. http://fontforge.sourceforge.net/faq.html#libraries. To see what
+# libraries fontforge thinks with use $ fontforge --library-status
+
+EAPI=2
+
+inherit eutils fdo-mime
+
+CIDMAPV="20090121"
+DESCRIPTION="postscript font editor and converter"
+HOMEPAGE="http://fontforge.sourceforge.net/"
+SRC_URI="mirror://sourceforge/fontforge/${PN}_full-${PV}.tar.bz2
+ doc? ( mirror://sourceforge/fontforge/fontforge_htdocs-${PV}.tar.bz2 )
+ cjk? ( mirror://gentoo/cidmaps-${CIDMAPV}.tgz )" # http://fontforge.sf.net/cidmaps.tgz
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="cjk cairo doc gif debug jpeg nls pasteafter png +python tiff tilepath truetype truetype-debugger pango type3 svg unicode +X"
+
+RDEPEND="gif? ( >=media-libs/giflib-4.1.0-r1 )
+ jpeg? ( >=media-libs/jpeg-6b-r2 )
+ png? ( >=media-libs/libpng-1.2.4 )
+ python? ( dev-lang/python )
+ tiff? ( >=media-libs/tiff-3.5.7-r1 )
+ truetype? ( >=media-libs/freetype-2.1.4 )
+ truetype-debugger? ( >=media-libs/freetype-2.3.8[fontforge,-bindist] )
+ svg? ( >=dev-libs/libxml2-2.6.7 )
+ unicode? ( >=media-libs/libuninameslist-030713 )
+ cairo? ( >=x11-libs/cairo-1.6.4[X] )
+ pango? ( >=x11-libs/pango-1.20.3[X] )
+ x11-libs/libXi
+ x11-proto/inputproto
+ !media-gfx/pfaedit"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${PN}_full-${PV}.tar.bz2
+ use cjk && unpack cidmaps-${CIDMAPV}.tgz
+ if use doc; then
+ mkdir html
+ cd html
+ unpack fontforge_htdocs-${PV}.tar.bz2
+ fi
+ cd "${S}"
+ epatch "${FILESDIR}/fontforge-desktop.patch"
+}
+
+src_prepare() {
+ if use doc; then
+ cd "${WORKDIR}/html/"
+ chmod -x *.html
+ fi
+}
+
+src_configure() {
+ # no real way of disabling gettext/nls ...
+ use nls || export ac_cv_header_libintl_h=no
+ econf \
+ $(use_with truetype-debugger freetype-src "/usr/include/freetype2/internal4fontforge/") \
+ $(use_enable type3) \
+ $(use_with python) \
+ $(use_with python pyextension) \
+ $(use_enable pasteafter) \
+ $(use_with X x) \
+ $(use_enable cjk gb12345) \
+ $(use_enable tilepath) \
+ $(use_enable debug debug-raw-points) \
+ $(use_with pango) \
+ $(use_with cairo)
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc AUTHORS README*
+
+ if use cjk; then #129518
+ insinto /usr/share/fontforge
+ doins "${WORKDIR}"/*.cidmap
+ fi
+
+ doicon Packaging/fontforge.png
+ insinto /usr/share/applications
+ doins Packaging/fontforge.desktop
+ insinto /usr/share/mime/application
+ doins Packaging/fontforge.xml
+
+ if use doc; then
+ insinto /usr/share/doc/${PN}
+ cd "${WORKDIR}/html/"
+ doins -r *
+ fi
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/media-gfx/fontforge/metadata.xml b/media-gfx/fontforge/metadata.xml
index 2f9f78d24a4f..0517806dbd05 100644
--- a/media-gfx/fontforge/metadata.xml
+++ b/media-gfx/fontforge/metadata.xml
@@ -19,6 +19,8 @@
capable of more exotic images than normal fonts but require much more effort
to support.</flag>
+ <flag name="pango">Enable pango font rendering</flag>
+
<flag name='pasteafter'>Controls whether fontforge has a paste after command
(Useful for making words?). This is kind of fun, but it isn't useful for
normal fonts.</flag>