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.7.ebuild
Date: Fri, 18 Nov 2011 20:22:21
Message-Id: 20111118202212.0B01C2004B@flycatcher.gentoo.org
1 jmbsvicetto 11/11/18 20:22:12
2
3 Added: catalyst-2.0.7.ebuild
4 Log:
5 [dev-util/catalyst] Bump catalyst to the 2.0.7 revision.
6 This revision includes all updates committed to the repo since the 2.0.6.918 release: more mips fixes by Matt, an update to the supported hashes by Robin,
7 an update to stop dropping /etc/portage on stage3, fixes to support the move from nocxx to cxx and updated cdtar with newer versions of memtest86+, elilo and syslinux.
8
9 (Portage version: 2.2.0_alpha73/cvs/Linux x86_64, RepoMan options: --force)
10
11 Revision Changes Path
12 1.1 dev-util/catalyst/catalyst-2.0.7.ebuild
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/catalyst/catalyst-2.0.7.ebuild?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/catalyst/catalyst-2.0.7.ebuild?rev=1.1&content-type=text/plain
16
17 Index: catalyst-2.0.7.ebuild
18 ===================================================================
19 # Copyright 1999-2011 Gentoo Foundation
20 # Distributed under the terms of the GNU General Public License v2
21 # $Header: /var/cvsroot/gentoo-x86/dev-util/catalyst/catalyst-2.0.7.ebuild,v 1.1 2011/11/18 20:22:11 jmbsvicetto Exp $
22
23 # catalyst-9999 -> latest Git
24 # catalyst-2.9999 -> catalyst_2 branch from Git
25 # catalyst-VER -> normal catalyst release
26
27 EAPI=2
28
29 if [[ ${PV} == 9999* || ${PV} == 2.9999* ]]; then
30 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/catalyst.git"
31 inherit git-2
32 SRC_URI=""
33 S="${WORKDIR}/${PN}"
34 KEYWORDS=""
35 else
36 SRC_URI="mirror://gentoo/${P}.tar.bz2
37 http://dev.gentoo.org/~jmbsvicetto/distfiles/${P}.tar.bz2"
38 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
39 fi
40 inherit eutils multilib
41
42 DESCRIPTION="release metatool used for creating releases based on Gentoo Linux"
43 HOMEPAGE="http://www.gentoo.org/proj/en/releng/catalyst/"
44
45 LICENSE="GPL-2"
46 SLOT="0"
47 RESTRICT=""
48 IUSE="ccache"
49
50 DEPEND="app-text/asciidoc"
51 RDEPEND="dev-lang/python
52 app-crypt/shash
53 virtual/cdrtools
54 ccache? ( dev-util/ccache )
55 ia64? ( sys-fs/dosfstools )
56 kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )"
57
58 pkg_setup() {
59 if use ccache ; then
60 einfo "Enabling ccache support for catalyst."
61 else
62 ewarn "By default, ccache support for catalyst is disabled."
63 ewarn "If this is not what you intended,"
64 ewarn "then you should add ccache to your USE."
65 fi
66 echo
67 einfo "The template spec files are now installed by default. You can find"
68 einfo "them under /usr/share/doc/${PF}/examples"
69 einfo "and they are considered to be the authorative source of information"
70 einfo "on catalyst."
71 echo
72 if [[ ${PV} == 9999* || ${PV} == 2.9999* ]]; then
73 ewarn "The ${EGIT_BRANCH:-master} branch (what you get with this ${PV} ebuild) contains"
74 ewarn "work-in-progress code. Be aware that it's likely that it will not"
75 ewarn "be in a working state at any given point. Please do not file bugs"
76 ewarn "until you have posted on the gentoo-catalyst mailing list and we"
77 ewarn "have asked you to do so."
78 fi
79 }
80
81 src_install() {
82 insinto /usr/$(get_libdir)/${PN}
83 exeinto /usr/$(get_libdir)/${PN}
84 doexe catalyst || die "copying catalyst"
85 if [[ ${PV} == 9999* ]]; then
86 doins -r modules files || die "copying files"
87 else
88 doins -r arch modules livecd || die "copying files"
89 fi
90 for x in targets/*; do
91 exeinto /usr/$(get_libdir)/${PN}/$x
92 doexe $x/* || die "copying ${x}"
93 done
94 make_wrapper catalyst /usr/$(get_libdir)/${PN}/catalyst
95 insinto /etc/catalyst
96 doins files/catalyst.conf files/catalystrc || die "copying configuration"
97 insinto /usr/share/doc/${PF}/examples
98 doins examples/* || die
99 dodoc README ChangeLog AUTHORS
100 doman files/catalyst.1
101 # Here is where we actually enable ccache
102 use ccache && \
103 dosed 's:options="autoresume kern:options="autoresume ccache kern:' \
104 /etc/catalyst/catalyst.conf
105 dosed "s:/usr/lib/catalyst:/usr/$(get_libdir)/catalyst:" \
106 /etc/catalyst/catalyst.conf
107 }
108
109 pkg_postinst() {
110 einfo "You can find more information about catalyst by checking out the"
111 einfo "catalyst project page at:"
112 einfo "http://www.gentoo.org/proj/en/releng/catalyst/index.xml"
113 echo
114 }