Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 209765 | Differences between
and this patch

Collapse All | Expand All

(-)pango-graphite-2.3.ebuild.old (-51 / +2 lines)
Lines 4-10 Link Here
4
4
5
EAPI=1
5
EAPI=1
6
6
7
inherit eutils autotools multilib
7
inherit eutils autotools pango-module
8
8
9
MPN=silgraphite
9
MPN=silgraphite
10
MP=${MPN}-${PV}
10
MP=${MPN}-${PV}
Lines 48-101 Link Here
48
	dodoc README || die "dodoc failed"
48
	dodoc README || die "dodoc failed"
49
	rmdir "${D}"/usr/bin
49
	rmdir "${D}"/usr/bin
50
50
51
	insinto /etc/pango
51
	pango-module-add-modules-path 50pangographite $(pango-module-standard-path)/graphite
52
	local PANGO_MODULES_DIR="$(echo "${D}"/usr/"$(get_libdir)"/pango/*/modules)"
53
	PANGO_MODULES_DIR=${PANGO_MODULES_DIR#${D}}
54
	cat >pangorc-graphite <<-EOF
55
		[Pango]
56
		ModulesPath=${PANGO_MODULES_DIR}:${PANGO_MODULES_DIR}/graphite
57
	EOF
58
	doins pangorc-graphite || die "doins pangorc-graphite failed"
59
60
	cat >50pangographite <<-EOF
61
		PANGO_RC_FILE=/etc/pango/pangorc-graphite
62
	EOF
63
	doenvd 50pangographite || die "doenvd failed"
64
}
65
66
# stolen from pango-1.18.4.ebuild
67
68
multilib_enabled() {
69
	has_multilib_profile || ( use x86 && [[ $(get_libdir) == lib32 ]] )
70
}
71
72
pkg_postinst() {
73
	if [[ "${ROOT}" == / ]] ; then
74
		einfo "Generating modules listing..."
75
		local PANGO_CONFDIR=
76
		if multilib_enabled ; then
77
			PANGO_CONFDIR=/etc/pango/${CHOST}
78
		else
79
			PANGO_CONFDIR=/etc/pango
80
		fi
81
		mkdir -p ${PANGO_CONFDIR}
82
83
		PANGO_RC_FILE=/etc/pango/pangorc-graphite pango-querymodules >${PANGO_CONFDIR}/pango.modules
84
	fi
85
}
86
87
pkg_postrm() {
88
	if [[ "${ROOT}" == / ]] ; then
89
		einfo "Generating modules listing..."
90
		local PANGO_CONFDIR=
91
		if multilib_enabled ; then
92
			PANGO_CONFDIR=/etc/pango/${CHOST}
93
		else
94
			PANGO_CONFDIR=/etc/pango
95
		fi
96
		mkdir -p ${PANGO_CONFDIR}
97
98
		[ -f $PANGO_RC_FILE ] || unset PANGO_RC_FILE
99
		pango-querymodules >${PANGO_CONFDIR}/pango.modules
100
	fi
101
}
52
}

Return to bug 209765