summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Volynets <iluxa@gentoo.org>2010-01-19 10:59:25 +0000
committerIlya Volynets <iluxa@gentoo.org>2010-01-19 10:59:25 +0000
commitaaf91299eccd198d8bb275bb016f6e979afed0ce (patch)
tree99d478a28fed8c198bcedd9ee449e429f3ef7506 /dev-cpp/sptk
parentfix building with newer kernels (#282261) (diff)
downloadgentoo-2-aaf91299eccd198d8bb275bb016f6e979afed0ce.tar.gz
gentoo-2-aaf91299eccd198d8bb275bb016f6e979afed0ce.tar.bz2
gentoo-2-aaf91299eccd198d8bb275bb016f6e979afed0ce.zip
Add sptk-4.00
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-cpp/sptk')
-rw-r--r--dev-cpp/sptk/ChangeLog10
-rw-r--r--dev-cpp/sptk/files/sptk-4.00-as-needed.patch11
-rw-r--r--dev-cpp/sptk/sptk-4.00.ebuild73
3 files changed, 92 insertions, 2 deletions
diff --git a/dev-cpp/sptk/ChangeLog b/dev-cpp/sptk/ChangeLog
index d5f74cf48648..99cf940d880c 100644
--- a/dev-cpp/sptk/ChangeLog
+++ b/dev-cpp/sptk/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-cpp/sptk
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-cpp/sptk/ChangeLog,v 1.66 2009/12/13 12:09:39 iluxa Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/sptk/ChangeLog,v 1.67 2010/01/19 10:59:24 iluxa Exp $
+
+*sptk-4.00 (19 Jan 2010)
+
+ 19 Jan 2010; Ilya A. Volynets-Evenbakh <iluxa@gentoo.org>
+ +sptk-4.00.ebuild, +files/sptk-4.00-as-needed.patch:
+ Add sptk-4.00
13 Dec 2009; Ilya A. Volynets-Evenbakh <iluxa@gentoo.org>
sptk-3.5.8.14-r1.ebuild, +files/sptk-3.5.8.14-as-needed.patch:
diff --git a/dev-cpp/sptk/files/sptk-4.00-as-needed.patch b/dev-cpp/sptk/files/sptk-4.00-as-needed.patch
new file mode 100644
index 000000000000..3811e9b85b45
--- /dev/null
+++ b/dev-cpp/sptk/files/sptk-4.00-as-needed.patch
@@ -0,0 +1,11 @@
+Index: src/CMakeLists.txt
+===================================================================
+--- sptk-4.00/src/CMakeLists.txt (revision 1108)
++++ sptk-4.00/src/CMakeLists.txt (working copy)
+@@ -53,7 +53,7 @@
+ IF (WIN32)
+ SET_TARGET_PROPERTIES (sputil4 PROPERTIES LINK_FLAGS "-mwindows -mno-cygwin")
+ ELSE (WIN32)
+- SET_TARGET_PROPERTIES (sputil4 PROPERTIES LINK_FLAGS "-lpthread")
++ TARGET_LINK_LIBRARIES (sputil4 pthread)
+ ENDIF (WIN32)
diff --git a/dev-cpp/sptk/sptk-4.00.ebuild b/dev-cpp/sptk/sptk-4.00.ebuild
new file mode 100644
index 000000000000..22bdc495aacd
--- /dev/null
+++ b/dev-cpp/sptk/sptk-4.00.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/sptk/sptk-4.00.ebuild,v 1.1 2010/01/19 10:59:24 iluxa Exp $
+
+EAPI=1
+
+inherit cmake-utils
+
+IUSE="fltk odbc doc sqlite excel postgres aspell mysql gnutls"
+
+DESCRIPTION="C++ user interface toolkit for X with database and Excel support"
+SRC_URI="http://www.sptk.net/sptk-${PV}.tbz2"
+HOMEPAGE="http://www.sptk.net"
+
+SLOT="4"
+LICENSE="BSD"
+KEYWORDS="~alpha ~amd64 ~mips ~ppc ~sparc ~x86"
+
+RDEPEND="fltk? ( >=x11-libs/fltk-1.1.6:1.1 )
+ odbc? ( >=dev-db/unixODBC-2.2.6 )
+ sqlite? ( >=dev-db/sqlite-3 )
+ postgres? ( >=virtual/postgresql-base-8.0 )
+ mysql? ( virtual/mysql )
+ aspell? ( >=app-text/aspell-0.50 )
+ gnutls? ( net-libs/gnutls )"
+
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+CMAKE_IN_SOURCE_BUILD=1
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}/${P}-as-needed.patch"
+}
+
+src_compile() {
+ local mycmakeargs="$(cmake-utils_use_no postgres POSTGRESQL)
+ $(cmake-utils_use_no mysql MYSQL)
+ $(cmake-utils_use_no sqlite SQLITE3)
+ $(cmake-utils_use_no odbc ODBC)
+ $(cmake-utils_use_no aspell ASPELL)
+ $(cmake-utils_use_no fltk FLTK)
+ $(cmake-utils_use_no excel EXCEL)
+ $(cmake-utils_use_no gnutls TLS)"
+
+ mycmakeargs="${mycmakeargs} -D CMAKE_INSTALL_PREFIX:PATH=/usr -D LIBDIR=$(get_libdir) ${SPTK_OPTIONS} -DNO_EXAMPLES:BOOLEAN=TRUE"
+
+ cmake-utils_src_configure
+
+ cmake-utils_src_compile
+ if use doc; then
+ cd "${S}"
+ einfo "Fixing sptk3.doxygen"
+ sed -i -e 's,/cvs/sptk3/,,g' sptk3.doxygen
+ einfo "Building docs"
+ doxygen sptk3.doxygen
+ fi
+
+}
+
+src_install () {
+
+ DOCS="README AUTHORS"
+ cmake-utils_src_install
+
+ dodir /usr/share/doc/${PF}
+ cp -r "${S}"/docs/* "${D}"/usr/share/doc/${PF}
+ if use doc; then
+ rm -fr "${D}/usr/share/doc/${PF}/latex"
+ cp -rf "${S}/pictures" "${D}/usr/share/doc/${PF}"
+ fi
+}