diff options
author | 2007-11-25 09:12:38 +0000 | |
---|---|---|
committer | 2007-11-25 09:12:38 +0000 | |
commit | 6c35ce11272e688c4c4bbf7722333fe6f6791ceb (patch) | |
tree | 2d90e44f3f5601969c40371f2f410bbd88702f6f /dev-db/sqliteman/sqliteman-1.0.1.ebuild | |
parent | Version bump, fixed license information, added conditional doc-building, adde... (diff) | |
download | sunrise-6c35ce11272e688c4c4bbf7722333fe6f6791ceb.tar.gz sunrise-6c35ce11272e688c4c4bbf7722333fe6f6791ceb.tar.bz2 sunrise-6c35ce11272e688c4c4bbf7722333fe6f6791ceb.zip |
dev-db/sqliteman: Switch to cmake-utils eclass; move built_with_use check to pkg_setup()
svn path=/sunrise/; revision=5113
Diffstat (limited to 'dev-db/sqliteman/sqliteman-1.0.1.ebuild')
-rw-r--r-- | dev-db/sqliteman/sqliteman-1.0.1.ebuild | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/dev-db/sqliteman/sqliteman-1.0.1.ebuild b/dev-db/sqliteman/sqliteman-1.0.1.ebuild index 36c964ec0..0d8ffa318 100644 --- a/dev-db/sqliteman/sqliteman-1.0.1.ebuild +++ b/dev-db/sqliteman/sqliteman-1.0.1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -inherit eutils +inherit eutils cmake-utils DESCRIPTION="Simple but powerfull Sqlite3 GUI database manager" HOMEPAGE="http://sqliteman.sourceforge.net/" @@ -17,22 +17,15 @@ RDEPEND=">=x11-libs/qt-4.2 DEPEND="${RDEPEND} dev-util/cmake" -src_compile() { + +pkg_setup() { if ! built_with_use ">=x11-libs/qt-4.2" sqlite3; then eerror "sqliteman requires x11-libs/qt-4 compiled with sqlite3 support" die "Please, rebuild x11-libs/qt-4 with the \"sqlite3\" USE flag." fi - cmake . \ - -DCMAKE_INSTALL_PREFIX:PATH=/usr \ - -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \ - -DCMAKE_C_FLAGS="${CFLAGS}" \ - || die "cmake failed" - emake || die "emake failed" } src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - + cmake-utils_src_install dodoc AUTHORS README - } |