summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2018-05-11 06:37:30 +0200
committerMartin Väth <martin@mvath.de>2018-05-11 06:37:30 +0200
commit2064c3b7cc4aaa64e85d708c92da41c361676acd (patch)
treefaad3b3afbd3dd953fb91847af35582f8b1a1058 /media-gfx
parentapp-cdr/cdrtools: EAPI=7 since fcaps.eclass is now fixed (diff)
downloadmv-2064c3b7cc4aaa64e85d708c92da41c361676acd.tar.gz
mv-2064c3b7cc4aaa64e85d708c92da41c361676acd.tar.bz2
mv-2064c3b7cc4aaa64e85d708c92da41c361676acd.zip
Save media-gfx/ipe from removal. games-puzzle/fish-fillets for USE=lua-split
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/ipe/Manifest1
-rw-r--r--media-gfx/ipe/ipe-7.2.7.ebuild58
-rw-r--r--media-gfx/ipe/metadata.xml17
3 files changed, 76 insertions, 0 deletions
diff --git a/media-gfx/ipe/Manifest b/media-gfx/ipe/Manifest
new file mode 100644
index 00000000..3b62fd01
--- /dev/null
+++ b/media-gfx/ipe/Manifest
@@ -0,0 +1 @@
+DIST ipe-7.2.7-src.tar.gz 1561350 SHA512 01c855f77814e59c56198fd9216be61ac7b9b6de827eaa18cbd9464c6c5116ca11d2d3b64a71edee94aecafe0d731352455e476657c7d2e9a2237e0cfa1f7bf5
diff --git a/media-gfx/ipe/ipe-7.2.7.ebuild b/media-gfx/ipe/ipe-7.2.7.ebuild
new file mode 100644
index 00000000..16dd7cc2
--- /dev/null
+++ b/media-gfx/ipe/ipe-7.2.7.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+RESTRICT="mirror"
+inherit desktop flag-o-matic qmake-utils toolchain-funcs
+
+DESCRIPTION="Drawing editor for creating figures in PDF or PS formats"
+HOMEPAGE="http://ipe.otfried.org/"
+SRC_URI="https://dl.bintray.com/otfried/generic/ipe/7.2/${P}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ app-text/texlive-core
+ >=dev-lang/lua-5.3:=
+ media-fonts/urw-fonts
+ media-libs/freetype:2
+ x11-libs/cairo
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+S="${WORKDIR}/${P}/src"
+
+src_prepare() {
+ filter-flags -fPIE -pie '-flto*' -fwhole-program +D_GLIBCXX_ASSERTIONS
+ sed -i \
+ -e 's/fpic/fPIC/' \
+ -e 's/moc-qt4/moc/' \
+ -e "s'\$(IPEPREFIX)/lib'\$(IPEPREFIX)/$(get_libdir)'g" \
+ -e "s'\(LUA_CFLAGS.*=\).*'\1 -I${EROOT}/usr/include/lua5.3'" \
+ -e 's/\(LUA_LIBS.*=\).*/\1 -llua5.3/' \
+ config.mak || die
+ sed -i -e 's/install -s/install/' common.mak || die
+ default
+}
+
+src_compile() {
+ emake \
+ CXX=$(tc-getCXX) \
+ IPEPREFIX="${EPREFIX}/usr" \
+ IPEDOCDIR="${EPREFIX}/usr/share/doc/${PF}/html"
+}
+
+src_install() {
+ emake install \
+ IPEPREFIX="${EPREFIX}/usr" \
+ IPEDOCDIR="${EPREFIX}/usr/share/doc/${PF}/html" \
+ INSTALL_ROOT="${ED}"
+ dodoc ../{news,readme}.txt
+ doicon ipe/icons/ipe.png
+ make_desktop_entry ipe Ipe ipe
+}
diff --git a/media-gfx/ipe/metadata.xml b/media-gfx/ipe/metadata.xml
new file mode 100644
index 00000000..6446d13a
--- /dev/null
+++ b/media-gfx/ipe/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Ipe is a drawing editor for creating figures in PDF or
+ (encapsulated) Postscript format. Ipe supports making small figures
+ for inclusion into LaTeX documents as well as making multi-page PDF
+ presentations.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">ipe7</remote-id>
+ </upstream>
+</pkgmetadata>