# ChangeLog for dev-python/qscintilla
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/qscintilla/ChangeLog,v 1.66 2006/11/14 13:48:15 caleb Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/qscintilla/ChangeLog,v 1.67 2006/12/26 22:38:00 dev-zero Exp $
+
+*qscintilla-1.7.1 (26 Dec 2006)
+
+ 26 Dec 2006; Tiziano Müller <dev-zero@gentoo.org>
+ -files/qscintilla-1.6-sandbox.patch, +files/qscintilla-1.7.1.patch,
+ -files/qscintilla-1.7.patch, -files/qscintilla-1.60-sandbox.patch,
+ -files/qscintilla-1.61-sandbox.patch,
+ -files/qscintilla-1.65-sandbox.patch, -qscintilla-1.6.ebuild,
+ -qscintilla-1.7.ebuild, +qscintilla-1.7.1.ebuild:
+ Version bump. Dropped old versions.
*qscintilla-1.7 (14 Nov 2006)
--- /dev/null
+--- designer/designer.pro.orig 2006-11-14 08:35:36.000000000 -0500
++++ designer/designer.pro 2006-11-14 08:35:49.000000000 -0500
+@@ -3,10 +3,12 @@
+
+ TEMPLATE = lib
+ TARGET = qscintillaplugin
+-DESTDIR = $(QTDIR)/plugins/designer
++DESTDIR = .
+
+ CONFIG += qt warn_on release plugin
+
+ SOURCES += qscintillaplugin.cpp
+
+-LIBS += -lqscintilla
++LIBS += -L../qt -lqscintilla
++
++INCLUDEPATH += ../qt
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/qscintilla/qscintilla-1.7.1.ebuild,v 1.1 2006/12/26 22:38:00 dev-zero Exp $
+
+inherit eutils toolchain-funcs
+
+QSCINTILLA_MAJOR_VER="1"
+SCINTILLA_VER="1.71"
+MY_P="${PN/qs/QS}-${SCINTILLA_VER}-gpl-${PV}"
+MY_P=${MY_P/_pre/snapshot-}
+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.river-bank.demon.co.uk/download/snapshots/QScintilla/${MY_P}.tar.gz"
+SRC_URI="http://www.riverbankcomputing.com/Downloads/QScintilla1/${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"
+IUSE="doc"
+
+DEPEND="=x11-libs/qt-3*"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}/qt
+ sed -i -e "s:DESTDIR = \$(QTDIR)/lib:DESTDIR = lib:" qscintilla.pro
+ echo -e "\nQMAKE_CFLAGS_RELEASE=${CFLAGS} -w\nQMAKE_CXXFLAGS_RELEASE=${CXXFLAGS} -w\nQMAKE_LFLAGS_RELEASE=${LDFLAGS}" >> qscintilla.pro
+ ${QTDIR}/bin/qmake -o Makefile qscintilla.pro
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}.patch
+
+ cd ${S}/designer
+ echo -e "\nQMAKE_CFLAGS_RELEASE=${CFLAGS} -w\nQMAKE_CXXFLAGS_RELEASE=${CXXFLAGS} -w\nQMAKE_LFLAGS_RELEASE=${LDFLAGS}" >> designer.pro
+ ${QTDIR}/bin/qmake -o Makefile designer.pro
+}
+
+src_compile() {
+ cd ${S}/qt
+ make all staticlib CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINK="$(tc-getCXX)" || die "make failed"
+ cd ${S}/designer
+ dodir ${QTDIR}/plugins/designer
+ make
+}
+
+src_install() {
+ dodoc ChangeLog LICENSE NEWS README*
+ dodir ${ROOT}/usr/{include,$(get_libdir),share/qscintilla/translations}
+ cd ${S}/qt
+ cp qextscintilla*.h "${D}/usr/include"
+ cp qscintilla*.qm "${D}/usr/share/qscintilla/translations"
+ cp lib/libqscintilla.a* "${D}/usr/$(get_libdir)"
+ cp -d lib/libqscintilla.so.* "${D}/usr/$(get_libdir)"
+ dodir ${QTDIR}/translations/
+ for I in $(ls -1 qscintilla*.qm) ; do
+ dosym "/usr/share/qscintilla/translations/${I}" "${QTDIR}/translations/${I}"
+ done
+ if use doc ; then
+ dohtml ${S}/doc/html/*
+ insinto /usr/share/doc/${PF}/Scintilla
+ doins ${S}/doc/Scintilla/*
+ fi
+ insinto ${QTDIR}/plugins/designer
+ insopts -m0755
+ doins ${S}/designer/libqscintillaplugin.so
+}