X-Git-Url: https://git.sthu.org/?p=shuber-gentoo-overlay.git;a=blobdiff_plain;f=media-gfx%2Fipe%2Fipe-7.1.4.ebuild;fp=media-gfx%2Fipe%2Fipe-7.1.4.ebuild;h=0000000000000000000000000000000000000000;hp=c4d1a50bc9fcb2591a249ab78633a40b4f7f1e42;hb=03a83f31d5ee44d3c4c755f62164dbcf16368713;hpb=d87e161eafca68245c210b0073308ea3218ef8d2 diff --git a/media-gfx/ipe/ipe-7.1.4.ebuild b/media-gfx/ipe/ipe-7.1.4.ebuild deleted file mode 100644 index c4d1a50..0000000 --- a/media-gfx/ipe/ipe-7.1.4.ebuild +++ /dev/null @@ -1,96 +0,0 @@ -# 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-5.2 - media-libs/freetype:2 - x11-libs/cairo - dev-qt/qtcore:4 - dev-qt/qtgui: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() { - 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 - - 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 -}