Revert "net-p2p/classified-ads: Classified ads v0.10 version bump. - changed way...
authorIan Delaney <idella4@gentoo.org>
Tue, 3 May 2016 06:22:29 +0000 (14:22 +0800)
committerIan Delaney <idella4@gentoo.org>
Tue, 3 May 2016 06:45:22 +0000 (14:45 +0800)
This reverts commit a7a6d00357859094ff31fcbaf4eba09de9360022.

net-p2p/classified-ads/classified-ads-0.10.ebuild

index a792705205c9b62b035c9dc820ca83c61dbd5a66..9ff04f5018e34df9c10659ae9ce51f7ae49996ca 100644 (file)
@@ -5,12 +5,11 @@
 EAPI=5
 PLOCALES="en fi sv da uk"
 PLOCALE_BACKUP="en"
-inherit qt4-r2 qmake-utils virtualx vcs-snapshot
+inherit qt4-r2 qmake-utils
 
-COMMIT_ID="cd0652c52f86f6284b793f26e5362bc8fb8a7118"
 DESCRIPTION="Program for displaying classified advertisement items"
 HOMEPAGE="http://katiska.org/classified-ads/"
-SRC_URI="https://github.com/operatornormal/classified-ads/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz \
+SRC_URI="https://github.com/operatornormal/classified-ads/archive/${PV}.tar.gz -> classified-ads-${PV}.tar.gz \
        https://github.com/operatornormal/classified-ads/blob/graphics/preprocessed.tar.gz?raw=true \
                -> classified-ads-graphics-${PV}.tar.gz"
 
@@ -38,14 +37,13 @@ DEPEND="${RDEPEND}
        dev-qt/qttest:4
                sys-devel/gdb:0
        doc? ( app-doc/doxygen[dot] )
-       test? ( dev-libs/libgcrypt:0
-               ${VIRTUALX_DEPEND} )
+       test? ( dev-libs/libgcrypt:0 )
        "
 
 src_prepare() {
        # preprocessed graphics are unpacked into wrong directory
        # so lets move them into correct location:
-       mv ../classified-ads-graphics-${PV}/* ui/ || die
+       mv ../ui/* ui/ || die
        # then just run qmake
        qt4-r2_src_prepare
 }
@@ -59,19 +57,8 @@ src_compile() {
 }
 
 src_test() {
-       virtx test_suite
-}
-
-src_install() {
-       emake install INSTALL_ROOT="${D}" DESTDIR="${D}"
-       use doc && dodoc -r doc/doxygen.generated/html/
-}
-
-# virtualx requires a command that returns number, and does not just die:
-test_suite() {
-       cd test || return -1
-       echo qmake
-       "$(qt4_get_bindir)"/qmake || return -2
+       cd test || die "test suite missing"
+       "$(qt4_get_bindir)"/qmake || die "test suite configure failed"
        emake
        # test suite will create files under $HOME, set $HOME to point to
        # safe location, ideas stolen from
@@ -83,9 +70,11 @@ test_suite() {
        result=$?
        export HOME=$BACKUP_HOME
        if [ $result != "0" ]; then
-               echo "test suite failed with error code " `echo $result`
-               return $result
-       else
-               return 0
+               die "test suite failed with error code " `echo $result`
        fi
 }
+
+src_install() {
+       emake install INSTALL_ROOT="${D}" DESTDIR="${D}"
+       use doc && dodoc -r doc/doxygen.generated/html/
+}