1 |
rafaelmartins 11/05/31 05:24:11 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: g-octave-0.4.1-r1.ebuild |
5 |
Removed: g-octave-0.4.1.ebuild |
6 |
Log: |
7 |
Revision bump, fixes bug #274593, thanks to Karol Szumski |
8 |
|
9 |
(Portage version: 2.2.0_alpha34/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.4 app-portage/g-octave/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/g-octave/ChangeLog?rev=1.4&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/g-octave/ChangeLog?rev=1.4&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/g-octave/ChangeLog?r1=1.3&r2=1.4 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-portage/g-octave/ChangeLog,v |
21 |
retrieving revision 1.3 |
22 |
retrieving revision 1.4 |
23 |
diff -u -r1.3 -r1.4 |
24 |
--- ChangeLog 24 Oct 2010 01:19:50 -0000 1.3 |
25 |
+++ ChangeLog 31 May 2011 05:24:11 -0000 1.4 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for app-portage/g-octave |
28 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-portage/g-octave/ChangeLog,v 1.3 2010/10/24 01:19:50 rafaelmartins Exp $ |
30 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/app-portage/g-octave/ChangeLog,v 1.4 2011/05/31 05:24:11 rafaelmartins Exp $ |
32 |
+ |
33 |
+*g-octave-0.4.1-r1 (31 May 2011) |
34 |
+ |
35 |
+ 31 May 2011; Rafael G. Martins <rafaelmartins@g.o> |
36 |
+ -g-octave-0.4.1.ebuild, +g-octave-0.4.1-r1.ebuild, |
37 |
+ +files/g-octave-0.4.1-add_cave_support.patch: |
38 |
+ Revision bump, fixes bug #274593, thanks to Karol Szumski |
39 |
|
40 |
24 Oct 2010; Rafael G. Martins <rafaelmartins@g.o> |
41 |
g-octave-0.4.1.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 app-portage/g-octave/g-octave-0.4.1-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/g-octave/g-octave-0.4.1-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/g-octave/g-octave-0.4.1-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: g-octave-0.4.1-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2011 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/app-portage/g-octave/g-octave-0.4.1-r1.ebuild,v 1.1 2011/05/31 05:24:11 rafaelmartins Exp $ |
55 |
|
56 |
EAPI="2" |
57 |
SUPPORT_PYTHON_ABIS="1" |
58 |
PYTHON_DEPEND="*:2.6" |
59 |
|
60 |
DB_COMMIT="d66097a24ed9654f350f16ba6f7395f314e9e48f" |
61 |
DB_DIR="rafaelmartins-${PN}-db-${DB_COMMIT:0:7}" |
62 |
|
63 |
inherit distutils eutils |
64 |
|
65 |
DESCRIPTION="A tool that generates and installs ebuilds for Octave-Forge" |
66 |
HOMEPAGE="http://www.g-octave.org/" |
67 |
|
68 |
SRC_URI="http://www.g-octave.org/releases/${P}.tar.gz |
69 |
http://github.com/rafaelmartins/${PN}-db/tarball/${DB_COMMIT} -> |
70 |
${PN}-db-${DB_COMMIT:0:7}.tar.gz" |
71 |
|
72 |
LICENSE="GPL-2" |
73 |
SLOT="0" |
74 |
KEYWORDS="~amd64 ~x86" |
75 |
IUSE="doc test" |
76 |
|
77 |
DEPEND="doc? ( >=dev-python/sphinx-1.0 )" |
78 |
RDEPEND="sys-apps/portage" |
79 |
|
80 |
PYTHON_MODNAME="g_octave" |
81 |
|
82 |
src_prepare() { |
83 |
distutils_src_prepare |
84 |
epatch "${FILESDIR}/${P}-add_cave_support.patch" |
85 |
sed -i -e 's/^has_fetch.*$/has_fetch = False/' scripts/g-octave \ |
86 |
|| die 'failed to patch the g-octave main script' |
87 |
} |
88 |
|
89 |
src_compile() { |
90 |
distutils_src_compile |
91 |
if use doc; then |
92 |
emake -C docs html || die 'failed to compile the documentation.' |
93 |
fi |
94 |
} |
95 |
|
96 |
src_install() { |
97 |
distutils_src_install |
98 |
dohtml ${PN}.html || die 'dohtml failed.' |
99 |
doman ${PN}.1 || die 'doman failed.' |
100 |
if use doc; then |
101 |
mv docs/_build/{html,sphinx} || die 'mv failed.' |
102 |
dohtml -r docs/_build/sphinx || die 'dohtml failed.' |
103 |
fi |
104 |
} |
105 |
|
106 |
src_test() { |
107 |
testing() { |
108 |
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" \ |
109 |
scripts/run_tests.py || die 'test failed.' |
110 |
} |
111 |
python_execute_function testing |
112 |
} |
113 |
|
114 |
pkg_postinst() { |
115 |
distutils_pkg_postinst |
116 |
elog |
117 |
elog 'To be able to use g-octave with the shipped package database, please' |
118 |
elog 'edit your configuration file, clean your db directory and run:' |
119 |
elog " emerge --config =${PF}" |
120 |
elog |
121 |
elog "If you are upgrading from =${PN}-0.3, please read this:" |
122 |
elog "http://doc.g-octave.org/${PV}/upgrading/#from-0-3-to-0-4" |
123 |
elog |
124 |
elog 'Please install the package manager that you want to use before run g-octave' |
125 |
elog |
126 |
} |
127 |
|
128 |
pkg_config() { |
129 |
local db="$(g-octave --config db)" |
130 |
mkdir -p "${db}" |
131 |
einfo "Extracting g-octave database files to: ${db}" |
132 |
tar -xzf "${DISTDIR}/${PN}-db-${DB_COMMIT:0:7}.tar.gz" -C "${db}" || die 'tar failed.' |
133 |
rm -rf "${db}"/{patches,octave-forge,info.json,timestamp} |
134 |
mv -f "${db}/${DB_DIR}"/* "${db}" || die 'mv failed.' |
135 |
rm -rf "${db}/${DB_DIR}" |
136 |
} |