public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/anaconda-overlay:master commit in: app-misc/sabayon-version/
@ 2011-06-14 12:31 Wiktor W Brodlo
  0 siblings, 0 replies; only message in thread
From: Wiktor W Brodlo @ 2011-06-14 12:31 UTC (permalink / raw
  To: gentoo-commits

commit:     493c03b2e32a76e661b2508a8ded3df2dda2c6b7
Author:     wiktor w brodlo <wiktor <AT> brodlo <DOT> net>
AuthorDate: Tue Jun 14 12:30:58 2011 +0000
Commit:     Wiktor W Brodlo <wiktor <AT> brodlo <DOT> net>
CommitDate: Tue Jun 14 12:30:58 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/anaconda-overlay.git;a=commit;h=493c03b2

new package: app-misc/sabayon-version

---
 app-misc/sabayon-version/Manifest                  |    2 +
 .../sabayon-version/sabayon-version-5-r5.ebuild    |   54 ++++++++++++++++++++
 app-misc/sabayon-version/sabayon-version-6.ebuild  |   54 ++++++++++++++++++++
 3 files changed, 110 insertions(+), 0 deletions(-)

diff --git a/app-misc/sabayon-version/Manifest b/app-misc/sabayon-version/Manifest
new file mode 100644
index 0000000..4db75b2
--- /dev/null
+++ b/app-misc/sabayon-version/Manifest
@@ -0,0 +1,2 @@
+EBUILD sabayon-version-5-r5.ebuild 1300 RMD160 f744ab8329e3b5b0e2e1848cf7dc3d7f88b54efd SHA1 d2ade1dfdcf13a3f026211591f44dad1f961d2b2 SHA256 30b1e95a156bc93af26bd60778fd673d178a9ff8070b93033c78b4f1793bc2a3
+EBUILD sabayon-version-6.ebuild 1300 RMD160 f744ab8329e3b5b0e2e1848cf7dc3d7f88b54efd SHA1 d2ade1dfdcf13a3f026211591f44dad1f961d2b2 SHA256 30b1e95a156bc93af26bd60778fd673d178a9ff8070b93033c78b4f1793bc2a3

diff --git a/app-misc/sabayon-version/sabayon-version-5-r5.ebuild b/app-misc/sabayon-version/sabayon-version-5-r5.ebuild
new file mode 100644
index 0000000..3c117e2
--- /dev/null
+++ b/app-misc/sabayon-version/sabayon-version-5-r5.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2004-2011 Sabayon Linux
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+DESCRIPTION="Sabayon System Release virtual package"
+HOMEPAGE="http://www.sabayon.org/"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+DEPEND=""
+# Listing default packages for the current release
+RDEPEND="app-admin/eselect-python
+	dev-lang/python:2.7
+	sys-devel/gcc:4.5
+	sys-devel/gcc-config"
+
+SABAYON_VER="${PV}"
+SABAYON_HEADER="Sabayon Linux"
+SABAYON_RELEASE="sabayon-release"
+
+src_unpack () {
+	if use x86; then
+		echo "${SABAYON_HEADER} x86 ${SABAYON_VER}" > "${SABAYON_RELEASE}"
+	else
+		echo "${SABAYON_HEADER} amd64 ${SABAYON_VER}" > "${SABAYON_RELEASE}"
+	fi
+}
+
+src_install () {
+	insinto /etc
+	doins sabayon-release
+	dosym /etc/sabayon-release /etc/system-release
+}
+
+pkg_postinst() {
+	# Setup Python 2.7
+	eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 --ignore 3.3 --ignore 3.4
+
+	# Setup GCC 4.5 (it's also in packages.db.post_upgrade.sh
+	c_profile=$(gcc-config -l | grep "\-4.5" | cut -d"[" -f 2 | cut -d"]" -f 1)
+	[[ "${?}" != "0" ]] && ewarn "gcc-config script error" && exit 1
+	if [[ ${c_profile} =~ ^[0-9]+$ ]]; then
+		gcc-config ${c_profile}
+		env-update
+	else
+		ewarn "gcc-config unable to set new profile:" ${c_profile}
+	fi
+}

diff --git a/app-misc/sabayon-version/sabayon-version-6.ebuild b/app-misc/sabayon-version/sabayon-version-6.ebuild
new file mode 100644
index 0000000..3c117e2
--- /dev/null
+++ b/app-misc/sabayon-version/sabayon-version-6.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2004-2011 Sabayon Linux
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+DESCRIPTION="Sabayon System Release virtual package"
+HOMEPAGE="http://www.sabayon.org/"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+DEPEND=""
+# Listing default packages for the current release
+RDEPEND="app-admin/eselect-python
+	dev-lang/python:2.7
+	sys-devel/gcc:4.5
+	sys-devel/gcc-config"
+
+SABAYON_VER="${PV}"
+SABAYON_HEADER="Sabayon Linux"
+SABAYON_RELEASE="sabayon-release"
+
+src_unpack () {
+	if use x86; then
+		echo "${SABAYON_HEADER} x86 ${SABAYON_VER}" > "${SABAYON_RELEASE}"
+	else
+		echo "${SABAYON_HEADER} amd64 ${SABAYON_VER}" > "${SABAYON_RELEASE}"
+	fi
+}
+
+src_install () {
+	insinto /etc
+	doins sabayon-release
+	dosym /etc/sabayon-release /etc/system-release
+}
+
+pkg_postinst() {
+	# Setup Python 2.7
+	eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 --ignore 3.3 --ignore 3.4
+
+	# Setup GCC 4.5 (it's also in packages.db.post_upgrade.sh
+	c_profile=$(gcc-config -l | grep "\-4.5" | cut -d"[" -f 2 | cut -d"]" -f 1)
+	[[ "${?}" != "0" ]] && ewarn "gcc-config script error" && exit 1
+	if [[ ${c_profile} =~ ^[0-9]+$ ]]; then
+		gcc-config ${c_profile}
+		env-update
+	else
+		ewarn "gcc-config unable to set new profile:" ${c_profile}
+	fi
+}



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-14 12:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14 12:31 [gentoo-commits] proj/anaconda-overlay:master commit in: app-misc/sabayon-version/ Wiktor W Brodlo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox