summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-05-16 15:20:40 -0400
committerMike Frysinger <vapier@gentoo.org>2016-05-16 15:20:59 -0400
commite633d3afccdc9ab93f9bd0880d546e583ef14bf4 (patch)
treea7702b2f64c170ad76583b234bd71b7c7f0d2fe8 /media-gfx
parentdev-perl/Test-Without-Module: back to unstable (diff)
downloadgentoo-e633d3afccdc9ab93f9bd0880d546e583ef14bf4.tar.gz
gentoo-e633d3afccdc9ab93f9bd0880d546e583ef14bf4.tar.bz2
gentoo-e633d3afccdc9ab93f9bd0880d546e583ef14bf4.zip
media-gfx/birdfont: initial ebuild
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/birdfont/Manifest1
-rw-r--r--media-gfx/birdfont/birdfont-2.5.1.ebuild98
-rw-r--r--media-gfx/birdfont/files/birdfont-2.5.1-verbose.patch10
-rw-r--r--media-gfx/birdfont/metadata.xml11
4 files changed, 120 insertions, 0 deletions
diff --git a/media-gfx/birdfont/Manifest b/media-gfx/birdfont/Manifest
new file mode 100644
index 000000000000..2d8fbd70bf65
--- /dev/null
+++ b/media-gfx/birdfont/Manifest
@@ -0,0 +1 @@
+DIST birdfont-2.5.1.tar.xz 1394944 SHA256 114899918abd3163fdcb12c1dd88f07630dff312be535cc6828095608442af8c SHA512 9976a7297900d18181dc5f2ef1c9af274b6986f126b2a499173a02bc5bd5eebb99918e1e4a152e5e304de63f86ae156045dc4a4f1da646c3579ef86f63ff8f5e WHIRLPOOL 028c077737cb0fb23a9d86d1a840885b570d84783d79a3c7610c462f6a7bab0591227b1c6397d1ba69393901c4752cbfe14ad9edd1821d613b89847e2a593d16
diff --git a/media-gfx/birdfont/birdfont-2.5.1.ebuild b/media-gfx/birdfont/birdfont-2.5.1.ebuild
new file mode 100644
index 000000000000..f596cb946448
--- /dev/null
+++ b/media-gfx/birdfont/birdfont-2.5.1.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+PLOCALES="cs de el es fr id it nb nl oc pl pt_BR pt ru sk sr sv tr uk"
+
+inherit python-any-r1 vala l10n toolchain-funcs multilib eutils
+
+DESCRIPTION="free font editor which lets you create vector graphics and export TTF, EOT and SVG fonts"
+HOMEPAGE="https://birdfont.org/"
+SRC_URI="https://birdfont.org/releases/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk nls"
+
+RDEPEND="dev-libs/libgee:0.8=
+ dev-libs/glib:2
+ media-libs/freetype:2
+ x11-libs/gdk-pixbuf:2
+ gtk? (
+ net-libs/libsoup:2.4
+ net-libs/webkit-gtk:3=
+ x11-libs/cairo
+ x11-libs/gtk+:3
+ x11-libs/libnotify
+ )"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ $(vala_depend)
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ vala_src_prepare
+
+ epatch "${FILESDIR}"/${PN}-2.5.1-verbose.patch
+
+ # The webkit we use requires gtk 3, so fix our deps too.
+ # Upstream has already made this fix for newer versions.
+ sed -i \
+ -e '/pkg-config/s:gtk+-2.0:gtk+-3.0:' \
+ scripts/build.py || die
+
+ sed -i \
+ -e "s:pkg-config:$(tc-getPKG_CONFIG):" \
+ configure scripts/{bavala,build,linux_build}.py || die
+
+ # Respect custom valac even during configure time.
+ # https://github.com/johanmattssonm/birdfont/pull/18
+ sed -i \
+ -e "s:valac:${VALAC}:" \
+ configure || die
+}
+
+src_configure() {
+ # The build scripts glob all po files to see what's available.
+ # Delete the files for langs we don't want to support.
+ if use nls ; then
+ l10n_find_plocales_changes po "" ".po" || die
+ rm_locale() { rm "po/$1.po" || die ; }
+ l10n_for_each_disabled_locale_do rm_locale
+ else
+ rm po/*.po || die
+ fi
+
+ ./configure \
+ --prefix "${EPREFIX}/usr" \
+ --gtk $(usex gtk True False) \
+ --gee gee-0.8 \
+ || die
+
+ # Hack out gtk build when it's disabled.
+ # Upstream has already fixed this for newer versions.
+ use gtk || sed -i '/^build.birdfont_gtk/d' scripts/linux_build.py
+}
+
+src_compile() {
+ ./scripts/linux_build.py \
+ --prefix "${EPREFIX}/usr" \
+ --cc "$(tc-getCC)" \
+ --cflags "${CFLAGS} ${CPPFLAGS}" \
+ --ldflags "${LDFLAGS}" \
+ --valac "${VALAC}" \
+ || die
+}
+
+src_install() {
+ ./install.py \
+ --dest "${D}" \
+ --nogzip \
+ --libdir "$(get_libdir)" \
+ --manpages-directory "/share/man/man1" \
+ || die
+ dodoc NEWS README
+}
diff --git a/media-gfx/birdfont/files/birdfont-2.5.1-verbose.patch b/media-gfx/birdfont/files/birdfont-2.5.1-verbose.patch
new file mode 100644
index 000000000000..b44a28de2303
--- /dev/null
+++ b/media-gfx/birdfont/files/birdfont-2.5.1-verbose.patch
@@ -0,0 +1,10 @@
+--- a/scripts/run.py
++++ b/scripts/run.py
+@@ -20,6 +20,7 @@ import subprocess
+
+ def run(cmd):
+ cmd = "sh -c \"" + cmd.replace ("\"", "\\\"") + "\""
++ print(cmd)
+ process = subprocess.Popen (cmd, shell=True)
+ process.communicate()[0]
+ if not process.returncode == 0:
diff --git a/media-gfx/birdfont/metadata.xml b/media-gfx/birdfont/metadata.xml
new file mode 100644
index 000000000000..c0c763874bf4
--- /dev/null
+++ b/media-gfx/birdfont/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>fonts@gentoo.org</email>
+</maintainer>
+<upstream>
+ <bugs-to>https://birdfont.org/bugtracker/</bugs-to>
+ <remote-id type="github">johanmattssonm/birdfont</remote-id>
+</upstream>
+</pkgmetadata>