|
Lines 1-18
Link Here
|
| 1 |
# Copyright 1999-2015 Gentoo Foundation |
1 |
# Copyright 1999-2015 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/classified-ads/classified-ads-0.07.ebuild,v 1.2 2015/07/13 06:56:29 idella4 Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/classified-ads/classified-ads-0.07.ebuild,v 1.1 2015/06/29 05:39:09 idella4 Exp $ |
| 4 |
|
4 |
|
| 5 |
EAPI=5 |
5 |
EAPI=5 |
| 6 |
PLOCALES="en fi sv" |
6 |
PLOCALES="en fi sv" |
| 7 |
PLOCALE_BACKUP="en" |
7 |
PLOCALE_BACKUP="en" |
| 8 |
inherit qt4-r2 |
8 |
inherit qt4-r2 vcs-snapshot |
| 9 |
|
9 |
|
| 10 |
DESCRIPTION="Program for displaying classified advertisement items" |
10 |
DESCRIPTION="Program for displaying classified advertisement items" |
| 11 |
HOMEPAGE="http://katiska.org/classified-ads/" |
11 |
HOMEPAGE="http://katiska.org/classified-ads/" |
| 12 |
SRC_URI="https://github.com/operatornormal/classified-ads/archive/${PV}.tar.gz \ |
12 |
COMMIT_ID="dd2017f3be9d5d68d5fb85af2d626424b3e712e0" |
| 13 |
-> classified-ads-${PV}.tar.gz \ |
13 |
SRC_URI="https://github.com/operatornormal/classified-ads/archive/${COMMIT_ID}.tar.gz\ |
| 14 |
https://github.com/operatornormal/classified-ads/blob/graphics/preprocessed.tar.gz?raw=true \ |
14 |
-> ${P}.tar.gz \ |
| 15 |
-> classified-ads-graphics-${PV}.tar.gz" |
15 |
https://github.com/operatornormal/classified-ads/blob/graphics/preprocessed.tar.gz?raw=true\ |
|
|
16 |
-> classified-ads-graphics-${PV}.tar.gz" |
| 16 |
|
17 |
|
| 17 |
LICENSE="LGPL-2.1" |
18 |
LICENSE="LGPL-2.1" |
| 18 |
SLOT="0" |
19 |
SLOT="0" |
|
Lines 42-48
Link Here
|
| 42 |
src_prepare() { |
43 |
src_prepare() { |
| 43 |
# preprocessed graphics are unpacked into wrong directory |
44 |
# preprocessed graphics are unpacked into wrong directory |
| 44 |
# so lets move them into correct location: |
45 |
# so lets move them into correct location: |
| 45 |
mv ../ui/* ui/ || die |
46 |
mv ../classified-ads-graphics-${PV}/* ui/ || die |
| 46 |
# then just run qmake |
47 |
# then just run qmake |
| 47 |
qt4-r2_src_prepare |
48 |
qt4-r2_src_prepare |
| 48 |
} |
49 |
} |
|
Lines 58-64
Link Here
|
| 58 |
src_test() { |
59 |
src_test() { |
| 59 |
cd test || die "test suite missing" |
60 |
cd test || die "test suite missing" |
| 60 |
qmake || die "test suite configure failed" |
61 |
qmake || die "test suite configure failed" |
| 61 |
make |
62 |
emake |
| 62 |
|
63 |
|
| 63 |
if [ -e $HOME/.classified_ads/sqlite_db ]; then |
64 |
if [ -e $HOME/.classified_ads/sqlite_db ]; then |
| 64 |
mv $HOME/.classified_ads/sqlite_db $HOME/.classified_ads/sqlite_db.backup \ |
65 |
mv $HOME/.classified_ads/sqlite_db $HOME/.classified_ads/sqlite_db.backup \ |