Add ipe-7.2.3
authorStefan Huber <shuber@sthu.org>
Sun, 12 Jun 2016 13:19:55 +0000 (15:19 +0200)
committerStefan Huber <shuber@sthu.org>
Sun, 12 Jun 2016 13:19:55 +0000 (15:19 +0200)
media-gfx/ipe/Manifest
media-gfx/ipe/ipe-7.2.3.ebuild [new file with mode: 0644]

index e53b06e..9740bc1 100644 (file)
@@ -2,6 +2,8 @@ AUX ipe-outputprecision.patch 2504 SHA256 142f967987a84d2c45d0ca90d3a4b72360dd72
 DIST ipe-7.1.10-src.tar.gz 1797408 SHA256 7fcede66270ec07e0f64634e297a6d1ab460cc434031d563736469250545934f SHA512 c3e8d1ae0f2a5803f24d035b85ba8396fc7c4134e0de80ecf72fc335d3554cc84231d9f06dc4eb2bb17edc3344e54a8f5965b285dc5a7de3307083061b9c008a WHIRLPOOL 97b7054991689223189d7b8839f302fe29baf22180a971acf08c1422790d344392c68cc4f617fd4daef395302d6b90d44cab50be5078f6400149b9f5f417da0b
 DIST ipe-7.1.9-src.tar.gz 1664418 SHA256 b61eb2674d09c12084cc5715113fa1e6083c28575c86d3b225fe6eaf250133d6 SHA512 3b8050215c2203595c31f8b604a740b347c0119c0c35cb92beab172c49ad8cad834bffe32021969efb66d3bc6867739f39888f3be034f74857295f21a4eb087f WHIRLPOOL 2792eb94b9d62e8f5b8bb1009141aff67f47fead371f7e55a73beedccb533c2b89533dcf7d092b9cb53296c2eb5118d2544b40a2dddc13530d5881ca82ff3ee9
 DIST ipe-7.2.2-src.tar.gz 1912583 SHA256 a70181492ac2d83546b5c88cb15da382b906d905ea3babe700bf98c822821d68 SHA512 28757e43eaf18fd40cf3fa60238fa57f311007bae4128503119ff88a48e4ff503b28683ddcdf83a14082fa3d8a2d1fff5ac5568012eab5af8a4010e37ebd196a WHIRLPOOL 1831756c0d8a5c07ea8252ac4eef81f96303509f247235011954c67b5a18dc247a00bf31118c18d2ff4c3c3fb146a9d8e294cdeeb44c91b9dd26163a047c838a
+DIST ipe-7.2.3-src.tar.gz 1897577 SHA256 4f463c4315aa894f8ae2cb3ef81bbda71f98ebbc3db7a67c16ea37a95320aa8b SHA512 56f9a46ab6581a8ccba63eebe4936bc8ff4f0ad138ff1805bea4ad401cc9a4fbb1a43ae14082e3ab922cd12fcde94c303dad5dfb27acf5128283cf10e008a37c WHIRLPOOL 63fd74b17a484c952ace12c548803540e15aa3e457cb1c86407b1659419c63c8d5b3c87c8335f03da2376a314ac96d361b3f2b390ff8f07e279072cdabd143c1
 EBUILD ipe-7.1.10.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b
 EBUILD ipe-7.1.9.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b
 EBUILD ipe-7.2.2.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b
+EBUILD ipe-7.2.3.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b
diff --git a/media-gfx/ipe/ipe-7.2.3.ebuild b/media-gfx/ipe/ipe-7.2.3.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
+}