Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /usr/local/portage/app-text/ttf2pt1/ttf2pt1-3.4.4-r7.ebuild
- # Copyright 1999-2011 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- # $Header: /var/cvsroot/gentoo-x86/app-text/ttf2pt1/ttf2pt1-3.4.4-r1.ebuild,v 1.5 2011/02/12 18:32:40 armin76 Exp $
- EAPI="3"
- inherit eutils multilib toolchain-funcs
- DESCRIPTION="True Type Font to Postscript Type 1 Converter"
- HOMEPAGE="http://ttf2pt1.sourceforge.net/"
- SRC_URI="mirror://sourceforge/ttf2pt1/${P}.tgz"
- LICENSE="ttf2pt1"
- SLOT="0"
- KEYWORDS="amd64 ppc sparc x86"
- IUSE=""
- DEPEND=">=media-libs/freetype-2.0"
- RDEPEND="${DEPEND}"
- src_prepare() {
- epatch "${FILESDIR}"/${P}-Makefile.patch
- epatch "${FILESDIR}"/${P}-LDFLAGS.patch
- epatch "${FILESDIR}"/${PN}-3.4.0-man-pages.diff
- epatch "${FILESDIR}"/${P}-freetype.patch
- epatch "${FILESDIR}"/${PN}-3.4.4-freetype2.patch # patch Dmitry 'daks' Fomenko
- sed -i -e "/^CC=/ { s:gcc:$(tc-getCC): }" Makefile
- sed -i -e "/^CFLAGS_SYS=/ { s:-O.*$:${CFLAGS}: }" Makefile
- sed -i -e "/^LIBS_FT=/ { s:-L/usr/lib:-L/usr/$(get_libdir): }" Makefile
- sed -i -e "/^LIBXDIR =/ { s:libexec:$(get_libdir): }" Makefile
- }
- src_install() {
- emake INSTDIR="${D}"/usr install || die
- dodir /usr/share/doc/${PF}
- pushd "${D}"/usr/share/ttf2pt1 > /dev/null
- rm -r app other
- mv [A-Z]* ../doc/${PF}
- popd > /dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement