ipe: add ipe-7.1.3
authorStefan Huber <shuber@sthu.org>
Tue, 8 Jan 2013 18:54:06 +0000 (19:54 +0100)
committerStefan Huber <shuber@sthu.org>
Tue, 8 Jan 2013 18:54:06 +0000 (19:54 +0100)
media-gfx/ipe/Manifest
media-gfx/ipe/ipe-7.1.3.ebuild [new file with mode: 0644]

index 91287f6..74cbeca 100644 (file)
@@ -3,7 +3,9 @@ DIST ipe-7.0.14-src.tar.gz 1322856 SHA256 793d92e407649d7edaba2b98502ae28963d1a3
 DIST ipe-7.1.0-src.tar.gz 1406988 SHA256 7121979ba19e425e015de9db3622066eeeb722636032a33fdbd5e01727e2ff3a SHA512 416dd82ffa259565f5504d6126c2027709e05d9fd8076604789e3558cf227077002e6e0a18fb3be26120077a8ab11b46efb7f6bb9441d91b7ccba27ca1797a43 WHIRLPOOL 3252e9154efd3ef3770e0dfe7acb2a38c54465d433804c7205d99d4854b909147b32c59ed1d62dfcd685c1ee94ae932cf916e20e1c288b90f42982a9057213d9
 DIST ipe-7.1.1-src.tar.gz 1283803 SHA256 749d916c0d9f2af9f92d09e2a9b79cba8f6e262ebb7ce8c806ddc0549ef2fdde SHA512 bf9a9c63ac79df6fbb749be421c162ee95c3afe79f7fe46a61cd8b1798a32062dad5f912e5fbe14ee090a4b707d332ec595dfd6437571d1e5b9aedd747903804 WHIRLPOOL 19a0482f5092e2b317765f12b21e485b06bef3956086136af7c12eb781ae13455ddc3a8d9ef9f7e4d73acbdd55b687615cb00320ba637113d456bf109f34c58a
 DIST ipe-7.1.2-src.tar.gz 1416404 SHA256 3390de67ee22b2de74acfab2e9fb29bcfd6fe180688086febb758dc8a82eda11 SHA512 9d49c5f116a6271fce5a5a6c77cad64e348b17b9b02d1be8bece341231ebc15f642d6af49e73958e4d26814eafc52be38855e4d24e8cf44488da6a752151a189 WHIRLPOOL 80770369cf07fa9bdf2f3d40fe88e2e312d65c9b075f3eae44822ede2e38cc5f378c8078ab21e14a25a604977578b3be71978dd71844c7877abc50ba0f7f8f4c
+DIST ipe-7.1.3-src.tar.gz 1497624 SHA256 4b3c537aeb9720e74ee5e63d50e1ec1f760f90b3896ffb9acc8c20353f60b8e9 SHA512 eea85ed6f4bc23e746222e01f4cdfd101c9c18aeb19fcba9abff565a65614a2a5e6630ddf9f7b024cac225582a34238a22f6fc5cf7dcc3733b8281ce844ef23d WHIRLPOOL a1b46452fb3b2d5da72a411eca48a2e24331416727b4013cecebad962817d3029c63a972ae7ee743b35cfe9adc4dc3c59d04572e9b472fdf774ad67202b0b264
 EBUILD ipe-7.0.14.ebuild 2568 SHA256 a2c93051a772cc1dfa89c9046c03172b81c33793295679693efb817105df4f6d SHA512 b25da43eddf9d4ebab11c2116b3dd6dbf23cea97ff1493d1e8c3d8bbc74fa20269318c6c820bdc979519731291781579df059141764aaca373ff8e07b583b5de WHIRLPOOL 2c498f7118c1ca184dd50ace3ea0613396104a7e58bef25156100195832608b53ed516fa0680f77faf4ced3f866cb397ca7f57b2d600835e665f56f247208fbe
 EBUILD ipe-7.1.0.ebuild 2550 SHA256 e7c148a5496287deec5e3ac3d3809285ce58f2f26dc807b0655faee00ea9949b SHA512 6ca7bd40e4c5486d6eec2b90dc01ac4498cc02ccbf30ba27948e31254bbb8db6ca4fff3feb8a26d9f4047ab264d0e7aa4e11aa7302c38151f95d667bebce2b77 WHIRLPOOL 9c64e7987ec58729f6c967895264d87c4373b1fd2b7a3d5bd9062ac507fdd0b14a08da487a8a311e4ad87f034384d9f422b79397665a8f346b1adecab58932df
 EBUILD ipe-7.1.1.ebuild 2550 SHA256 e7c148a5496287deec5e3ac3d3809285ce58f2f26dc807b0655faee00ea9949b SHA512 6ca7bd40e4c5486d6eec2b90dc01ac4498cc02ccbf30ba27948e31254bbb8db6ca4fff3feb8a26d9f4047ab264d0e7aa4e11aa7302c38151f95d667bebce2b77 WHIRLPOOL 9c64e7987ec58729f6c967895264d87c4373b1fd2b7a3d5bd9062ac507fdd0b14a08da487a8a311e4ad87f034384d9f422b79397665a8f346b1adecab58932df
 EBUILD ipe-7.1.2.ebuild 1731 SHA256 0e94488d0f9a3ab2a3a533ba630151e27bdb4f16a96f5c96de1a215f4bf8e8e2 SHA512 8a594c4eed41bdec73e4ef103ad4fbbd6c78cdf508c3f2ada23d99155e31ed05c1579c1cdbce6fddc30b1005d55cba22e374c1440293b9e0219a5ae99c7cc24e WHIRLPOOL 8ad4636b87bb7f94315af2af60eeb14092132acad4abb2e9e19f5511f9f03a860cf50b652271517fa705e20053c4a7bb1c519180aba677e94933a797e3067c77
+EBUILD ipe-7.1.3.ebuild 2370 SHA256 931d2fac037c93018dc9b0a23e97d6966dc3ae727095f638d1dd55f243cd31d3 SHA512 147b385e0c1f260761a897490780e68399d0642b050594d388212a70a2cdc3ba050de32752abe153db01197a10132d959337029a85c441b92e95b48f262b9bc9 WHIRLPOOL c3290c78d4881d989e7988592646e55e931c8db21fe9dfdc541ee62e2068ad28f3535eb4b37e166b1ee2780c2e34395543dd6ce2ad3ba34c3a969e5b1ab6bb84
diff --git a/media-gfx/ipe/ipe-7.1.3.ebuild b/media-gfx/ipe/ipe-7.1.3.ebuild
new file mode 100644 (file)
index 0000000..9e39b24
--- /dev/null
@@ -0,0 +1,98 @@
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils toolchain-funcs qt4-r2
+
+DESCRIPTION="Drawing editor for creating figures in PDF or PS formats"
+HOMEPAGE="http://ipe7.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ipe7/${PN}/7.1.0/${P}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="highprec"
+
+RDEPEND="app-text/texlive-core
+       dev-lang/lua
+       media-libs/freetype:2
+       x11-libs/cairo
+       x11-libs/qt-core:4
+       x11-libs/qt-gui:4"
+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() {
+       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_prepare() {
+       sed -i \
+               -e 's/fpic/fPIC/' \
+               -e 's/moc-qt4/moc/' \
+               -e "s:\$(IPEPREFIX)/lib:\$(IPEPREFIX)/$(get_libdir):g" \
+               config.mak || die
+       sed -i -e 's/install -s/install/' common.mak || die
+
+}
+
+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
+}