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

(-)doxygen-1.5.7.1.ebuild (-13 / +9 lines)
Lines 4-10 Link Here
4
4
5
EAPI=1
5
EAPI=1
6
6
7
inherit eutils flag-o-matic toolchain-funcs qt3 fdo-mime
7
inherit eutils flag-o-matic toolchain-funcs fdo-mime qt4
8
8
9
DESCRIPTION="documentation system for C++, C, Java, Objective-C, Python, IDL, and other languages"
9
DESCRIPTION="documentation system for C++, C, Java, Objective-C, Python, IDL, and other languages"
10
HOMEPAGE="http://www.doxygen.org/"
10
HOMEPAGE="http://www.doxygen.org/"
Lines 13-21 Link Here
13
LICENSE="GPL-2"
13
LICENSE="GPL-2"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
16
IUSE="debug doc nodot qt3 latex elibc_FreeBSD"
16
IUSE="debug doc nodot qt4 latex elibc_FreeBSD"
17
17
18
RDEPEND="qt3? ( x11-libs/qt:3 )
18
RDEPEND="qt4? ( x11-libs/qt:4 )
19
	latex? ( || (
19
	latex? ( || (
20
		( app-text/texlive-core
20
		( app-text/texlive-core
21
		dev-texlive/texlive-genericrecommended
21
		dev-texlive/texlive-genericrecommended
Lines 57-71 Link Here
57
	# Consolidate patches, apply FreeBSD configure patch, codepage patch,
57
	# Consolidate patches, apply FreeBSD configure patch, codepage patch,
58
	# qtools stuff, and patches for bugs 129142, 121770, and 129560.
58
	# qtools stuff, and patches for bugs 129142, 121770, and 129560.
59
	epatch "${FILESDIR}/${PN}-1.5-legacy-patches.diff"
59
	epatch "${FILESDIR}/${PN}-1.5-legacy-patches.diff"
60
	epatch "${FILESDIR}/${P}-substitute.patch"
61
60
62
	# remove internal libpng - see bug #210237
61
	# remove internal libpng - see bug #210237
63
	epatch "${FILESDIR}/${PN}-1.5-system-libpng.patch"
62
	epatch "${FILESDIR}/${PN}-1.5-system-libpng.patch"
64
63
65
	if [ $(get_libdir) == "lib64" ] ; then
66
		epatch "${FILESDIR}/${PN}-1.5-qtlibdir.patch"
67
	fi
68
69
	# fix final DESTDIR issue
64
	# fix final DESTDIR issue
70
	sed -i.orig -e "s:\$(INSTALL):\$(DESTDIR)/\$(INSTALL):g" \
65
	sed -i.orig -e "s:\$(INSTALL):\$(DESTDIR)/\$(INSTALL):g" \
71
		addon/doxywizard/Makefile.in || die "sed failed"
66
		addon/doxywizard/Makefile.in || die "sed failed"
Lines 93-106 Link Here
93
		my_conf="--prefix /usr"
88
		my_conf="--prefix /usr"
94
	fi
89
	fi
95
90
96
	if use qt3; then
91
	if use qt4; then
92
	    export QTDIR=/usr
97
		einfo "using QTDIR: '$QTDIR'."
93
		einfo "using QTDIR: '$QTDIR'."
98
		export LIBRARY_PATH="${QTDIR}/$(get_libdir):${LIBRARY_PATH}"
94
		export LIBRARY_PATH="${QTDIR}/$(get_libdir):${LIBRARY_PATH}"
99
		export LD_LIBRARY_PATH="${QTDIR}/$(get_libdir):${LD_LIBRARY_PATH}"
95
		export LD_LIBRARY_PATH="${QTDIR}/$(get_libdir):${LD_LIBRARY_PATH}"
100
		einfo "using QT LIBRARY_PATH: '$LIBRARY_PATH'."
96
		einfo "using QT LIBRARY_PATH: '$LIBRARY_PATH'."
101
		einfo "using QT LD_LIBRARY_PATH: '$LD_LIBRARY_PATH'."
97
		einfo "using QT LD_LIBRARY_PATH: '$LD_LIBRARY_PATH'."
102
		./configure ${my_conf} $(use_with qt3 doxywizard) \
98
		./configure ${my_conf} $(use_with qt4 doxywizard) \
103
		|| die 'configure with qt3 failed'
99
		|| die 'configure with qt4 failed'
104
	else
100
	else
105
		./configure ${my_conf} || die 'configure failed'
101
		./configure ${my_conf} || die 'configure failed'
106
	fi
102
	fi
Lines 141-147 Link Here
141
	make DESTDIR="${D}" MAN1DIR=share/man/man1 \
137
	make DESTDIR="${D}" MAN1DIR=share/man/man1 \
142
		install || die '"make install" failed.'
138
		install || die '"make install" failed.'
143
139
144
	if use qt3; then
140
	if use qt4; then
145
		doicon "${FILESDIR}/doxywizard.png"
141
		doicon "${FILESDIR}/doxywizard.png"
146
		make_desktop_entry doxywizard "DoxyWizard ${PV}" \
142
		make_desktop_entry doxywizard "DoxyWizard ${PV}" \
147
		"doxywizard.png" "Application;Development"
143
		"doxywizard.png" "Application;Development"
Lines 163-169 Link Here
163
	fdo-mime_desktop_database_update
159
	fdo-mime_desktop_database_update
164
160
165
	elog
161
	elog
166
	elog "The USE flags qt3, doc, and latex will enable doxywizard, or"
162
	elog "The USE flags qt4, doc, and latex will enable doxywizard, or"
167
	elog "the html and pdf documentation, respectively.  For examples"
163
	elog "the html and pdf documentation, respectively.  For examples"
168
	elog "and other goodies, see the source tarball.  For some example"
164
	elog "and other goodies, see the source tarball.  For some example"
169
	elog "output, run doxygen on the doxygen source using the Doxyfile"
165
	elog "output, run doxygen on the doxygen source using the Doxyfile"

Return to bug 252978