diff options
author | Peter Volkov <pva@gentoo.org> | 2009-01-21 16:24:36 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2009-01-21 16:24:36 +0000 |
commit | 5213e6de931d5f7d6434eac6ad329a8f211916f3 (patch) | |
tree | 693c8af0ff5c3237ca8b849b0e2e17f0f1c042f7 /media-gfx/fontforge | |
parent | Version bump. (diff) | |
download | gentoo-2-5213e6de931d5f7d6434eac6ad329a8f211916f3.tar.gz gentoo-2-5213e6de931d5f7d6434eac6ad329a8f211916f3.tar.bz2 gentoo-2-5213e6de931d5f7d6434eac6ad329a8f211916f3.zip |
New USE flags: tilepath, pasteafter, type3 they are not useful for most users (based on feedback from upstream, thank you George Williams); truetype-debugger (makes possible build ff with truetype debugger), doc (install offline documentation), debug (useful for developers of ff) and cjk (make ff understand gb12345 encoding and install cidmaps). Updated cidmaps, fixes bug #236829, thank Yu Yuwei for report. Fix .desktop file, bug 249463, thank Ulrich Müller for report. Install mime file and update fdo databases for desktop and mime.
(Portage version: 2.2_rc23/cvs/Linux i686)
Diffstat (limited to 'media-gfx/fontforge')
-rw-r--r-- | media-gfx/fontforge/ChangeLog | 17 | ||||
-rw-r--r-- | media-gfx/fontforge/files/fontforge-desktop.patch | 16 | ||||
-rw-r--r-- | media-gfx/fontforge/fontforge-20081224-r1.ebuild | 110 | ||||
-rw-r--r-- | media-gfx/fontforge/metadata.xml | 29 |
4 files changed, 170 insertions, 2 deletions
diff --git a/media-gfx/fontforge/ChangeLog b/media-gfx/fontforge/ChangeLog index 484c9fa5f0b0..c9507c56ccbc 100644 --- a/media-gfx/fontforge/ChangeLog +++ b/media-gfx/fontforge/ChangeLog @@ -1,6 +1,19 @@ # ChangeLog for media-gfx/fontforge -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/fontforge/ChangeLog,v 1.96 2008/12/25 17:44:10 vapier Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/fontforge/ChangeLog,v 1.97 2009/01/21 16:24:36 pva Exp $ + +*fontforge-20081224-r1 (21 Jan 2009) + + 21 Jan 2009; Peter Volkov <pva@gentoo.org> +files/fontforge-desktop.patch, + metadata.xml, +fontforge-20081224-r1.ebuild: + New USE flags: tilepath, pasteafter, type3 they are not useful for most + users (based on feedback from upstream, thank you George Williams); + truetype-debugger (makes possible build ff with truetype debugger), doc + (install offline documentation), debug (useful for developers of ff) and + cjk (make ff understand gb12345 encoding and install cidmaps). Updated + cidmaps, fixes bug #236829, thank Yu Yuwei for report. Fix .desktop file, + bug 249463, thank Ulrich Müller for report. Install mime file and update + fdo databases for desktop and mime. *fontforge-20081224 (25 Dec 2008) diff --git a/media-gfx/fontforge/files/fontforge-desktop.patch b/media-gfx/fontforge/files/fontforge-desktop.patch new file mode 100644 index 000000000000..ba8ac1078152 --- /dev/null +++ b/media-gfx/fontforge/files/fontforge-desktop.patch @@ -0,0 +1,16 @@ +diff --git a/Packaging/fontforge.desktop b/Packaging/fontforge.desktop +index a66b28b..18e049c 100644 +--- a/Packaging/fontforge.desktop ++++ b/Packaging/fontforge.desktop +@@ -8,9 +8,8 @@ Comment[ru]=Редактор шрифтов + Comment[fr]=Un constructeur des polices + Comment[zh_TW]=FontForge 描邊字型編輯器 + Exec=fontforge +-Icon=fontforge.png ++Icon=fontforge + Terminal=false + Type=Application +-Categories=Application;Graphics; +-Encoding=UTF-8 ++Categories=Graphics; + MimeType=application/vnd.font-fontforge-sfd;application/x-font-ttf;application/x-font-otf;application/x-font-type1;application/x-font-bdf;application/x-font-pcf;application/x-font-tex; diff --git a/media-gfx/fontforge/fontforge-20081224-r1.ebuild b/media-gfx/fontforge/fontforge-20081224-r1.ebuild new file mode 100644 index 000000000000..7538b9dd4d3e --- /dev/null +++ b/media-gfx/fontforge/fontforge-20081224-r1.ebuild @@ -0,0 +1,110 @@ +# 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-20081224-r1.ebuild,v 1.1 2009/01/21 16:24:36 pva 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 doc gif debug jpeg nls pasteafter png +python tiff tilepath truetype truetype-debugger 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 ) + 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) +} + +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 696065edd338..2f9f78d24a4f 100644 --- a/media-gfx/fontforge/metadata.xml +++ b/media-gfx/fontforge/metadata.xml @@ -2,4 +2,33 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>fonts</herd> +<longdescription> + FontForge -- An outline font editor that lets you create your own + postscript, truetype, opentype, cid-keyed, multi-master, cff, svg and bitmap + (bdf, FON, NFNT) fonts, or edit existing ones. Also lets you convert one + format to another. FontForge has support for many macintosh font formats. +</longdescription> +<use> + + <flag name="truetype-debugger">Enable enable truetype debugger in + fontforge</flag> + + <flag name='type3'>Build in support for type3/svg fonts containing + multilayered drawing with strokes, fills, images, etc. Type3 fonts are only + supported by postscript printers (not by most windowing displays). They are + capable of more exotic images than normal fonts but require much more effort + to support.</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> + + <flag name='cjk'>Controls whether fontforge understands the gb12345 encoding + and installs cidmap package to edit CID-keyed fonts</flag> + + <flag name='tilepath'>Controls whether fontforge has a tile path command (a + variant of expand stroke) This is useful for very decorative fonts, most + people won't want it.</flag> + +</use> </pkgmetadata> |