Add ipe-7.2.6
authorStefan Huber <shuber@sthu.org>
Thu, 22 Sep 2016 18:37:40 +0000 (20:37 +0200)
committerStefan Huber <shuber@sthu.org>
Thu, 22 Sep 2016 18:37:40 +0000 (20:37 +0200)
media-gfx/ipe/Manifest
media-gfx/ipe/ipe-7.2.6.ebuild [new file with mode: 0644]

index 6e0a075..07a4a60 100644 (file)
@@ -3,7 +3,9 @@ DIST ipe-7.1.10-src.tar.gz 1797408 SHA256 7fcede66270ec07e0f64634e297a6d1ab460cc
 DIST ipe-7.2.3-src.tar.gz 1897577 SHA256 4f463c4315aa894f8ae2cb3ef81bbda71f98ebbc3db7a67c16ea37a95320aa8b SHA512 56f9a46ab6581a8ccba63eebe4936bc8ff4f0ad138ff1805bea4ad401cc9a4fbb1a43ae14082e3ab922cd12fcde94c303dad5dfb27acf5128283cf10e008a37c WHIRLPOOL 63fd74b17a484c952ace12c548803540e15aa3e457cb1c86407b1659419c63c8d5b3c87c8335f03da2376a314ac96d361b3f2b390ff8f07e279072cdabd143c1
 DIST ipe-7.2.4-src.tar.gz 2166294 SHA256 ee2fc8fb93262603cb01e2ed2e30cbc0268d5457c4d48f88b38747da4c8c070a SHA512 9ace985b46774692c998994e088ffbdf5ca17b02ae0c5cc115a070ef6c8236b71443c963b98884c5051f222ea18a2dfc4d2a25c40a9bd21b83000279f6e9a134 WHIRLPOOL 2fa3d0f6d7042c2ad79bce9162c0d89d2816bcb9393370d9282e62d0d026ec76f3398d96d77f3577eb55279107620d9fd41dc5f50e786a60e9005df788fe5e27
 DIST ipe-7.2.5-src.tar.gz 1775528 SHA256 3e1068959e41ebba350ff5373b459dec0ca174a7a761aee2b8ac72ab156be60c SHA512 09e3b6d5604793c43ea151ffc070b99bf717f7e41116662f1020266ca35da5630e2a9ecf945de50e7da7a713cbed78957f1fe4a7085f47cdd81b400ed7720bb5 WHIRLPOOL 22370517a888b146db1bf2aa379f60d325da0a923992dd7654a65a7f0496656af9f7f3a23a5932f1c7bb4e2b2e48c52b9d1bbb963d199fa4cc4f5198b6637cf1
+DIST ipe-7.2.6-src.tar.gz 1559458 SHA256 0bc880c564f6f66566305875e3a83a626241e01634e343e507d97d6e74de7d49 SHA512 d03539ac0ed52539d42c0df2b9d6a97141a61dcc87873a0c58d9d044fad9a9d30cac67edc7a2d58f21c937095d6ea6c2218287b5d88aebf5d12de807be623034 WHIRLPOOL 9ab32271db79e1dab9ea66c5dce1bf5bcbee7556263729978abffd7cbe0d109ee147c537a5509400e6932d9574680a74e7f86716cf1f7b80dad7afccfd9496ab
 EBUILD ipe-7.1.10.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b
 EBUILD ipe-7.2.3.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b
 EBUILD ipe-7.2.4.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b
 EBUILD ipe-7.2.5.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b
+EBUILD ipe-7.2.6.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b
diff --git a/media-gfx/ipe/ipe-7.2.6.ebuild b/media-gfx/ipe/ipe-7.2.6.ebuild
new file mode 100644 (file)
index 0000000..b4962b7
--- /dev/null
@@ -0,0 +1,98 @@
+# 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.2
+       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" \
+               LUA_PACKAGE=lua
+}
+
+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
+}