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

Collapse All | Expand All

(-)/usr/portage/app-text/highlight/highlight-3.18.ebuild (-1 / +13 lines)
Lines 13-19 Link Here
13
LICENSE="GPL-3"
13
LICENSE="GPL-3"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
16
IUSE="examples qt4"
16
IUSE="examples perl qt4"
17
17
18
RDEPEND="dev-lang/lua
18
RDEPEND="dev-lang/lua
19
	qt4? (
19
	qt4? (
Lines 25-30 Link Here
25
	virtual/pkgconfig"
25
	virtual/pkgconfig"
26
26
27
src_prepare() {
27
src_prepare() {
28
	epatch "${FILESDIR}"/${P}-parallel-example-make.patch
28
	sed -i "/LSB_DOC_DIR/s:doc/${PN}:doc/${PF}:" \
29
	sed -i "/LSB_DOC_DIR/s:doc/${PN}:doc/${PF}:" \
29
		src/core/datadir.cpp || die
30
		src/core/datadir.cpp || die
30
31
Lines 34-39 Link Here
34
}
35
}
35
36
36
src_compile() {
37
src_compile() {
38
	if use perl ; then
39
		emake -C ${S}/examples/swig -f makefile perl "CXX=$(tc-getCXX)" "CFLAGS=${CXXFLAGS} -fPIC"
40
		emake -C ${S}/src -f makefile clean
41
	fi
37
	myhlopts=(
42
	myhlopts=(
38
		"CXX=$(tc-getCXX)"
43
		"CXX=$(tc-getCXX)"
39
		"AR=$(tc-getAR)"
44
		"AR=$(tc-getAR)"
Lines 58-63 Link Here
58
	emake -f makefile "${myhlopts[@]}" install
63
	emake -f makefile "${myhlopts[@]}" install
59
	use qt4 && emake -f makefile "${myhlopts[@]}" install-gui
64
	use qt4 && emake -f makefile "${myhlopts[@]}" install-gui
60
65
66
	if use perl ; then
67
		eval $(perl -V:{installvendorlib,installvendorarch})
68
		insinto ${installvendorlib}
69
		doins examples/swig/highlight.pm
70
		insinto ${installvendorarch}/auto/${PN}
71
		doins examples/swig/highlight.so
72
	fi
61
	if use examples ; then
73
	if use examples ; then
62
		docompress -x /usr/share/doc/${PF}/examples
74
		docompress -x /usr/share/doc/${PF}/examples
63
	else
75
	else

Return to bug 522936