Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 153111 Details for
Bug 222105
x11-libs/qscintilla-2.2 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
suggested qscintilla-2.2 ebuild
qscintilla-2.2.ebuild (text/plain), 3.66 KB, created by
Darren Dale
on 2008-05-14 16:42:32 UTC
(
hide
)
Description:
suggested qscintilla-2.2 ebuild
Filename:
MIME Type:
Creator:
Darren Dale
Created:
2008-05-14 16:42:32 UTC
Size:
3.66 KB
patch
obsolete
># Copyright 1999-2008 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI=1 >inherit eutils toolchain-funcs multilib > >MY_P="${PN/qs/QS}-gpl-${PV}" >S=${WORKDIR}/${MY_P} > >DESCRIPTION="QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor class." >HOMEPAGE="http://www.riverbankcomputing.co.uk/qscintilla/" >SRC_URI="http://www.riverbankcomputing.com/static/Downloads/QScintilla2/${MY_P}.tar.gz" >#SRC_URI="mirror://gentoo/${MY_P}.tar.gz" > >SLOT="0" >LICENSE="GPL-2" >KEYWORDS="alpha amd64 ~hppa ia64 ~ppc ppc64 sparc x86 ~x86-fbsd" >IUSE="qt4 +python doc examples debug" > >RDEPEND=" > qt4? ( || ( x11-libs/qt-gui:4 > x11-libs/qt:4 ) > ) > !qt4? ( x11-libs/qt:3 )" ># dev-python/PyQt needs qscintilla to build and qscintilla's python bindings ># need dev-python/PyQt, bug 199543 >PDEPEND="python? ( dev-python/qscintilla-python )" > >src_unpack() { > unpack ${A} > > local myqmake myqtdir > if use qt4; then > myqmake=/usr/bin/qmake > myqtdir=Qt4 > else > myqmake="${QTDIR}/bin/qmake" > myqtdir=Qt3 > fi > > cd "${S}/${myqtdir}" > sed -i \ > -e "s:DESTDIR = \$(QTDIR)/lib:DESTDIR = lib:" \ > -e "s:DESTDIR = \$\$\[QT_INSTALL_LIBS\]:DESTDIR = lib:"\ > qscintilla.pro || die "sed in qscintilla.pro failed" > > cat <<- EOF >> qscintilla.pro > QMAKE_CFLAGS_RELEASE=${CFLAGS} -w > QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS} -w > QMAKE_LFLAGS_RELEASE=${LDFLAGS} > EOF > > ${myqmake} -o Makefile qscintilla.pro > cd "${S}/designer-${myqtdir}" > > if use qt4; then > epatch "${FILESDIR}/${P}-qt4.patch" > else > epatch "${FILESDIR}/${P}-qt.patch" > > sed -i \ > -e "s:DESTDIR = \$(QTDIR)/plugins/designer:DESTDIR = .:" \ > designer.pro ||Â die "sed in designer.pro failed" > fi > > cat <<- EOF >> designer.pro > QMAKE_CFLAGS_RELEASE=${CFLAGS} -w > QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS} -w > QMAKE_LFLAGS_RELEASE=${LDFLAGS} > EOF > > ${myqmake} -o Makefile designer.pro >} > >src_compile() { > if use qt4; then > cd "${S}"/Qt4 > else > cd "${S}"/Qt3 > fi > make all staticlib CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINK="$(tc-getCXX)" || die "make failed" > > if use qt4; then > cd "${S}"/designer-Qt4 > make DESTDIR="${D}"/usr/lib/qt4/plugins/designer || die "make failed" > dodir /usr/lib/qt4/plugins/designer > else > cd "${S}"/designer-Qt3 > make DESTDIR="${D}"/${QTDIR}/plugins/designer || die "make failed" > dodir ${QTDIR}/plugins/designer > fi > make >} > >src_install() { > dodoc ChangeLog NEWS README* > dodir /usr/{include,$(get_libdir),share/qscintilla/translations} > if use qt4; then > cd "${S}"/Qt4 > else > cd "${S}"/Qt3 > fi > cp -r Qsci "${D}/usr/include" > #cp qextscintilla*.h "${D}/usr/include" > cp qscintilla*.qm "${D}/usr/share/qscintilla/translations" > cp libqscintilla2.a* "${D}/usr/$(get_libdir)" > cp -d libqscintilla2.so.* "${D}/usr/$(get_libdir)" > if use qt4; then > dodir /usr/share/qt4/translations/ > for I in $(ls -1 qscintilla*.qm) ; do > dosym "/usr/share/qscintilla/translations/${I}" "/usr/share/qt4/translations/${I}" > done > else > dodir ${QTDIR}/translations/ > for I in $(ls -1 qscintilla*.qm) ; do > dosym "/usr/share/qscintilla/translations/${I}" "${QTDIR}/translations/${I}" > done > fi > if use doc ; then > dohtml "${S}"/doc/html/* > insinto /usr/share/doc/${PF}/Scintilla > doins "${S}"/doc/Scintilla/* > fi > if use qt4; then > insinto /usr/$(get_libdir)/qt4/plugins/designer > insopts -m0755 > doins "${S}"/designer-Qt4/libqscintillaplugin.so > else > insinto ${QTDIR}/plugins/designer > insopts -m0755 > doins "${S}"/designer-Qt3/libqscintillaplugin.so > fi >} > >pkg_postinst() { > if use qt4; then > ewarn "Please remerge dev-python/PyQt4 if you have problems with eric4" > else > ewarn "Please remerge dev-python/PyQt if you have problems with eric3" > fi > ewarn "or other qscintilla related packages before submitting bug reports." >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 222105
: 153111 |
153113
|
153115
|
153117