Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 429922
Collapse All | Expand All

(-)/usr/portage/media-gfx/fontforge/fontforge-20110222-r1.ebuild (-19 / +20 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2012 Gentoo Foundation
1
# Copyright 1999-2012 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-gfx/fontforge/fontforge-20110222-r1.ebuild,v 1.8 2012/09/05 07:52:11 jlec Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-gfx/fontforge/fontforge-20110222-r1.ebuild,v 1.7 2012/05/09 02:09:37 aballier Exp $
4
4
5
# Some notes for maintainers this package:
5
# Some notes for maintainers this package:
6
# 1. README-unix: freetype headers are required to make use of truetype debugger
6
# 1. README-unix: freetype headers are required to make use of truetype debugger
Lines 13-34 Link Here
13
# users. http://fontforge.sourceforge.net/faq.html#libraries. To see what
13
# users. http://fontforge.sourceforge.net/faq.html#libraries. To see what
14
# libraries fontforge thinks with use $ fontforge --library-status
14
# libraries fontforge thinks with use $ fontforge --library-status
15
15
16
EAPI=3
16
EAPI=4
17
17
18
PYTHON_DEPEND="python? 2"
18
PYTHON_DEPEND="python? 2"
19
inherit eutils fdo-mime python autotools
19
inherit eutils fdo-mime python autotools
20
20
21
HTDOCSV="20110221"
21
MY_PV="${PV}-b"
22
HTDOCSV="${PV}-b"
22
CIDMAPV="20090121"
23
CIDMAPV="20090121"
23
DESCRIPTION="postscript font editor and converter"
24
DESCRIPTION="postscript font editor and converter"
24
HOMEPAGE="http://fontforge.sourceforge.net/"
25
HOMEPAGE="http://fontforge.sourceforge.net/"
25
SRC_URI="mirror://sourceforge/fontforge/${PN}_full-${PV}.tar.bz2
26
SRC_URI="mirror://sourceforge/fontforge/${PN}_full-${MY_PV}.tar.bz2
26
	doc? ( mirror://sourceforge/fontforge/fontforge_htdocs-${HTDOCSV}.tar.bz2 )
27
	doc? ( mirror://sourceforge/fontforge/fontforge_htdocs-${HTDOCSV}.tar.bz2 )
27
	cjk? ( mirror://gentoo/cidmaps-${CIDMAPV}.tgz )"	# http://fontforge.sf.net/cidmaps.tgz
28
	cjk? ( mirror://gentoo/cidmaps-${CIDMAPV}.tgz )"	# http://fontforge.sf.net/cidmaps.tgz
28
29
29
LICENSE="BSD"
30
LICENSE="BSD"
30
SLOT="0"
31
SLOT="0"
31
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
32
KEYWORDS="~x86"
32
IUSE="cjk cairo doc gif debug jpeg nls pasteafter png +python tiff tilepath truetype truetype-debugger pango type3 svg unicode +X"
33
IUSE="cjk cairo doc gif debug jpeg nls pasteafter png +python tiff tilepath truetype truetype-debugger pango type3 svg unicode +X"
33
34
34
RDEPEND="gif? ( >=media-libs/giflib-4.1.0-r1 )
35
RDEPEND="gif? ( >=media-libs/giflib-4.1.0-r1 )
Lines 47-52 Link Here
47
DEPEND="${RDEPEND}
48
DEPEND="${RDEPEND}
48
	nls? ( sys-devel/gettext )"
49
	nls? ( sys-devel/gettext )"
49
50
51
S="${WORKDIR}/${PN}-${MY_PV}"
52
50
pkg_setup() {
53
pkg_setup() {
51
	if use python; then
54
	if use python; then
52
		python_set_active_version 2
55
		python_set_active_version 2
Lines 55-61 Link Here
55
}
58
}
56
59
57
src_unpack() {
60
src_unpack() {
58
	unpack ${PN}_full-${PV}.tar.bz2
61
	unpack ${PN}_full-${MY_PV}.tar.bz2
59
	use cjk && unpack cidmaps-${CIDMAPV}.tgz
62
	use cjk && unpack cidmaps-${CIDMAPV}.tgz
60
	if use doc; then
63
	if use doc; then
61
		mkdir html
64
		mkdir html
Lines 65-72 Link Here
65
}
68
}
66
69
67
src_prepare() {
70
src_prepare() {
68
	epatch "${FILESDIR}/${P}-lxkbui.patch"
69
	epatch "${FILESDIR}/${P}-libz.so-linkage.patch"
70
	if use doc; then
71
	if use doc; then
71
		chmod -x "${WORKDIR}"/html/*.html || die
72
		chmod -x "${WORKDIR}"/html/*.html || die
72
	fi
73
	fi
Lines 92-117 Link Here
92
}
93
}
93
94
94
src_install() {
95
src_install() {
95
	emake install DESTDIR="${D}" || die
96
	emake install DESTDIR="${D}"
96
	dodoc AUTHORS README* || die
97
97
98
	find "${ED}" -name '*.la' -exec rm -f {} +
98
	find "${ED}" -name '*.la' -exec rm -f {} +
99
99
100
	if use cjk; then #129518
100
	if use cjk; then #129518
101
		insinto /usr/share/fontforge
101
		insinto /usr/share/fontforge
102
		doins "${WORKDIR}"/*.cidmap || die
102
		doins "${WORKDIR}"/*.cidmap
103
	fi
103
	fi
104
104
105
	doicon Packaging/fontforge.png || die
105
	for isize in 16 22 24 32 48
106
	domenu Packaging/fontforge.desktop || die
106
	do	
107
		doicon -s ${isize} Packaging/icons/${isize}x${isize}/apps/fontforge.png
108
	done
109
	doicon -s scalable Packaging/icons/scalable/apps/fontforge.svg
110
	insinto /usr/share/applications
111
	doins Packaging/fontforge.desktop
107
	insinto /usr/share/mime/application
112
	insinto /usr/share/mime/application
108
	doins Packaging/fontforge.xml || die
113
	doins Packaging/fontforge.xml
109
114
110
	if use doc; then
115
	use doc && dodoc -r README* "${WORKDIR}/html" 
111
		insinto /usr/share/doc/${PN}
112
		cd "${WORKDIR}/html/"
113
		doins -r * || die
114
	fi
115
}
116
}
116
117
117
pkg_postrm() {
118
pkg_postrm() {

Return to bug 429922