Gentoo Archives: gentoo-commits

From: "Jorge Manuel B. S. Vicetto (jmbsvicetto)" <jmbsvicetto@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/catalyst: catalyst-2.0.9999.ebuild ChangeLog
Date: Thu, 02 Jan 2014 20:30:29
Message-Id: 20140102203023.B44AF2004C@flycatcher.gentoo.org
1 jmbsvicetto 14/01/02 20:30:23
2
3 Modified: ChangeLog
4 Added: catalyst-2.0.9999.ebuild
5 Log:
6 Add live ebuild to track the new 2.X branch (2.0.9999). Thanks to - Mike Gilbert (floppym) for a complete review of the python eclass use.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key BB0E6E98)
9
10 Revision Changes Path
11 1.268 dev-util/catalyst/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/catalyst/ChangeLog?rev=1.268&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/catalyst/ChangeLog?rev=1.268&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/catalyst/ChangeLog?r1=1.267&r2=1.268
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/catalyst/ChangeLog,v
20 retrieving revision 1.267
21 retrieving revision 1.268
22 diff -u -r1.267 -r1.268
23 --- ChangeLog 14 Nov 2013 00:46:40 -0000 1.267
24 +++ ChangeLog 2 Jan 2014 20:30:23 -0000 1.268
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-util/catalyst
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/catalyst/ChangeLog,v 1.267 2013/11/14 00:46:40 mattst88 Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-util/catalyst/ChangeLog,v 1.268 2014/01/02 20:30:23 jmbsvicetto Exp $
31 +
32 +*catalyst-2.0.9999 (02 Jan 2014)
33 +
34 + 02 Jan 2014; Jorge Manuel B. S. Vicetto <jmbsvicetto@g.o>
35 + +catalyst-2.0.9999.ebuild:
36 + Add live ebuild to track the new 2.X branch (2.0.9999). Thanks to - Mike
37 + Gilbert (floppym) for a complete review of the python eclass use.
38
39 *catalyst-2.0.15 (14 Nov 2013)
40
41
42
43
44 1.1 dev-util/catalyst/catalyst-2.0.9999.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/catalyst/catalyst-2.0.9999.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/catalyst/catalyst-2.0.9999.ebuild?rev=1.1&content-type=text/plain
48
49 Index: catalyst-2.0.9999.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/dev-util/catalyst/catalyst-2.0.9999.ebuild,v 1.1 2014/01/02 20:30:23 jmbsvicetto Exp $
54
55 EAPI=5
56
57 if [[ ${PV} == *9999* ]]; then
58 SRC_ECLASS="git-2"
59 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/catalyst.git"
60 EGIT_MASTER="master"
61 EGIT_BRANCH="2.X"
62 SRC_URI=""
63 KEYWORDS=""
64 S="${WORKDIR}/${PN}"
65 else
66 SRC_URI="mirror://gentoo/${P}.tar.bz2
67 http://dev.gentoo.org/~jmbsvicetto/distfiles/${P}.tar.bz2
68 http://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.bz2"
69 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
70 fi
71
72 PYTHON_COMPAT=( python{2_6,2_7} )
73
74 inherit eutils multilib python-single-r1 ${SRC_ECLASS}
75
76 DESCRIPTION="Release metatool used for creating releases based on Gentoo Linux"
77 HOMEPAGE="http://www.gentoo.org/proj/en/releng/catalyst/"
78
79 LICENSE="GPL-2"
80 SLOT="0"
81 IUSE="ccache kernel_linux"
82
83 DEPEND="
84 app-text/asciidoc
85 ${PYTHON_DEPS}
86 "
87 RDEPEND="
88 app-arch/lbzip2
89 app-crypt/shash
90 virtual/cdrtools
91 amd64? ( >=sys-boot/syslinux-3.72 )
92 ia64? ( sys-fs/dosfstools )
93 x86? ( >=sys-boot/syslinux-3.72 )
94 ccache? ( dev-util/ccache )
95 kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )
96 ${PYTHON_DEPS}
97 "
98
99 REQUIRED_USE=${PYTHON_REQUIRED_USE}
100
101 pkg_setup() {
102 if use ccache ; then
103 einfo "Enabling ccache support for catalyst."
104 else
105 ewarn "By default, ccache support for catalyst is disabled."
106 ewarn "If this is not what you intended,"
107 ewarn "then you should add ccache to your USE."
108 fi
109
110 echo
111 einfo "The template spec files are now installed by default. You can find"
112 einfo "them under /usr/share/doc/${PF}/examples"
113 einfo "and they are considered to be the authorative source of information"
114 einfo "on catalyst."
115 echo
116
117 python-single-r1_pkg_setup
118 }
119
120 src_install() {
121 insinto /usr/$(get_libdir)/${PN}
122 exeinto /usr/$(get_libdir)/${PN}
123 doexe catalyst || die "copying catalyst"
124
125 if [[ ${PV} == 3.9999* ]]; then
126 doins -r modules files || die "copying files"
127 else
128 doins -r arch modules livecd || die "copying files"
129 fi
130
131 for x in targets/*; do
132 exeinto /usr/$(get_libdir)/${PN}/$x
133 doexe $x/* || die "copying ${x}"
134 done
135
136 # Here is where we actually enable ccache
137 use ccache && \
138 sed -i -e 's:options="autoresume kern:options="autoresume ccache kern:' \
139 files/catalyst.conf
140
141 sed -i -e "s:/usr/lib/catalyst:/usr/$(get_libdir)/catalyst:" \
142 files/catalyst.conf
143
144 make_wrapper catalyst /usr/$(get_libdir)/${PN}/catalyst
145 insinto /etc/catalyst
146 doins files/catalyst.conf files/catalystrc || die "copying configuration"
147 insinto /usr/share/doc/${PF}/examples
148 doins examples/* || die
149 dodoc README AUTHORS
150 doman files/catalyst.1 files/catalyst-spec.5
151
152 python_fix_shebang "${ED}usr/$(get_libdir)/catalyst/catalyst"
153 python_optimize "${ED}"
154 }
155
156 pkg_postinst() {
157 einfo "You can find more information about catalyst by checking out the"
158 einfo "catalyst project page at:"
159 einfo "http://www.gentoo.org/proj/en/releng/catalyst/index.xml"
160 }