media-gfx/ipe: Add ipe-7.2.11
authorStefan Huber <shuber@sthu.org>
Sat, 9 Mar 2019 13:36:37 +0000 (14:36 +0100)
committerStefan Huber <shuber@sthu.org>
Sat, 9 Mar 2019 13:36:37 +0000 (14:36 +0100)
media-gfx/ipe/Manifest
media-gfx/ipe/ipe-7.2.11.ebuild [new file with mode: 0644]

index 9766260..81c75e1 100644 (file)
@@ -1,7 +1,9 @@
 AUX ipe-outputprecision.patch 2504 BLAKE2B 7db95c3cf1298704e032001e3f5d86164d0c0bb86b05ac0de01f5bc3e27e7a538bc3c4828a37f6581ed96fbe6c62eb39ada76f2e6b9a7081e5ab4575f614eb3b SHA512 13692eb5d0934147195b894f4fc378bf9f8def020cf12066025c6973097a753860f884cc8de6dc686b1bff35603874efaa814fb82838d7695f31f023109c7d83
 DIST ipe-7.1.10-src.tar.gz 1797408 BLAKE2B 1a9504883401f36ef169789d1077a1848f9abbf3bda1ec376e66334a8e4fb1fe0ea8fe4fee9751eee48cff074f6b1f4da1cce7d223657da22c33880884662a5b SHA512 c3e8d1ae0f2a5803f24d035b85ba8396fc7c4134e0de80ecf72fc335d3554cc84231d9f06dc4eb2bb17edc3344e54a8f5965b285dc5a7de3307083061b9c008a
+DIST ipe-7.2.11-src.tar.gz 1950071 BLAKE2B af75c43a2c7c8f1ffdf33fbfd722a07c65bbf85a334ed8db69265d8418eaad57a95a90a6ac7df97229b44093cc4b539397f1f7d661ef9ab873345f91479f314f SHA512 665a1d0da18ef3d0a00997ebd0783ee4bba363f516bf34ef5ffc4dcbb09db6622845298884cfaa6ad86d7ef2d9f449ccb5bcf61073c69dd2a53bcaf085fae4e9
 DIST ipe-7.2.7-src.tar.gz 1561350 BLAKE2B d6b16174da0cdb243f60771a38fda27ded90c100234af597239f858ac77a93bd1df1310f2615a7e26f876561976040488accf36e6bc6fdc2800d7fbc759dd067 SHA512 01c855f77814e59c56198fd9216be61ac7b9b6de827eaa18cbd9464c6c5116ca11d2d3b64a71edee94aecafe0d731352455e476657c7d2e9a2237e0cfa1f7bf5
 DIST ipe-7.2.9-src.tar.gz 1848781 BLAKE2B f1302c1f0320d25e865005327e002f0bbdc3d29bf450f87ea78d5a0ced61e2fb4bcf4dc2463d5b3970d970990e4ec37f4face11dfcdc38f064d286de61f4fae9 SHA512 f79e5eba07a4656e355a0d157fc098e5ef020fe4b63993723172315d6526610ef23dbda7eeb5e34f3943e49b302898847bb803ac82d5b399c5f76d0d0c36cea1
 EBUILD ipe-7.1.10.ebuild 2410 BLAKE2B 69f1255d1d9530a04142515d6143472d2814e1516a2c9c0440b795ef7fd619657c86834fc3495364a28397ad6f9c3653005dc7b8f349b092a53cbd659b741658 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f
+EBUILD ipe-7.2.11.ebuild 2390 BLAKE2B 63ed211dc6b9553dcbc5afa864e0e85b6c0a2716597b555d4ae41bba819bb1f74f4c80fd8f33d776941baa5448b63a8c88e234dde2ffa78170ac36e8f73af3f1 SHA512 95d0df6e50503b08a45ca73d4edbb8e7bda58e7c0c9482f7647eddeaa4cdae75fe9590ff0747639c1379d94e57b2a5487158c37fa195ff19690585533ff7c5f5
 EBUILD ipe-7.2.7.ebuild 2390 BLAKE2B 63ed211dc6b9553dcbc5afa864e0e85b6c0a2716597b555d4ae41bba819bb1f74f4c80fd8f33d776941baa5448b63a8c88e234dde2ffa78170ac36e8f73af3f1 SHA512 95d0df6e50503b08a45ca73d4edbb8e7bda58e7c0c9482f7647eddeaa4cdae75fe9590ff0747639c1379d94e57b2a5487158c37fa195ff19690585533ff7c5f5
 EBUILD ipe-7.2.9.ebuild 2390 BLAKE2B 63ed211dc6b9553dcbc5afa864e0e85b6c0a2716597b555d4ae41bba819bb1f74f4c80fd8f33d776941baa5448b63a8c88e234dde2ffa78170ac36e8f73af3f1 SHA512 95d0df6e50503b08a45ca73d4edbb8e7bda58e7c0c9482f7647eddeaa4cdae75fe9590ff0747639c1379d94e57b2a5487158c37fa195ff19690585533ff7c5f5
diff --git a/media-gfx/ipe/ipe-7.2.11.ebuild b/media-gfx/ipe/ipe-7.2.11.ebuild
new file mode 100644 (file)
index 0000000..21a02f9
--- /dev/null
@@ -0,0 +1,97 @@
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils 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/${PV%.*}/${P}-src.tar.gz"
+
+RESTRICT="mirror"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="highprec"
+
+RDEPEND="app-text/texlive-core
+       >=dev-lang/lua-5.3
+       media-libs/freetype:2
+       x11-libs/cairo
+       dev-qt/qtcore:5
+       dev-qt/qtwidgets:5"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig"
+
+S="${WORKDIR}/${P}/src"
+COMMONDIR=/usr/share/ipe/common
+
+search_urw_fonts() {
+       # colon-separated list of paths
+       local texmfdist="$(kpsewhich -var-value=TEXMFDIST)"
+       # according to TeX directory structure
+       local urwdir=fonts/type1/urw
+       # add colon as field separator
+       local IFS="${IFS}:" dir
+       for dir in ${texmfdist}; do
+               if [[ -d ${dir}/${urwdir} ]]; then
+                       URWFONTDIR="${dir}/${urwdir}"
+                       return 0
+               fi
+       done
+       return 1
+}
+
+src_prepare() {
+       sed -i \
+               -e 's/fpic/fPIC/' \
+               -e 's_moc_/usr/lib64/qt5/bin/moc_' \
+               -e "s:\$(IPEPREFIX)/lib:\$(IPEPREFIX)/$(get_libdir):g" \
+               config.mak || die
+       sed -i -e 's/install -s/install/' common.mak || die
+
+       if use highprec; then
+               einfo "Adding patch for higher output precision"
+               epatch "${FILESDIR}"/${PN}-outputprecision.patch
+       fi
+}
+
+pkg_setup() {
+       if search_urw_fonts; then
+               einfo "URW fonts found in ${URWFONTDIR}"
+       else
+               ewarn "Could not find directory containing URW fonts"
+               ewarn "Ipe will not function properly without them."
+       fi
+}
+
+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
+       # Link style sheets
+       if [ -d $COMMONDIR/styles ]; then
+               einfo "Linking common style sheets from $COMMONDIR"
+               for f in $COMMONDIR/styles/*; do
+                       einfo "  Linking ${f##*/}"
+                       dosym $f usr/share/ipe/${PV}/styles/${f##*/}
+               done
+
+               elog "Style sheets from $COMMONDIR/styles have been symlinked to"
+               elog "the style sheet directory of ${P}. If you add additional"
+               elog "style sheets later to $COMMONDIR/styles you may symlink"
+               elog "them by hand to '/usr/share/ipe/${PV}/styles/'."
+       fi
+}