diff options
author | 2011-10-05 20:24:49 +0300 | |
---|---|---|
committer | 2011-10-05 20:24:49 +0300 | |
commit | 15977786f0a162ad55f0e1c5b5222d516c0b6b19 (patch) | |
tree | 2ee37a3dbc3d704a37fabe5eddeedb8fefc48bff | |
parent | update portage manifest (diff) | |
download | gentoo-guis-15977786f0a162ad55f0e1c5b5222d516c0b6b19.tar.gz gentoo-guis-15977786f0a162ad55f0e1c5b5222d516c0b6b19.tar.bz2 gentoo-guis-15977786f0a162ad55f0e1c5b5222d516c0b6b19.zip |
[app-portage/kdemerge] Initial commit, ebuild by me and johu
-rw-r--r-- | app-portage/kdemerge/Manifest | 24 | ||||
-rw-r--r-- | app-portage/kdemerge/files/create_repolinks | 47 | ||||
-rw-r--r-- | app-portage/kdemerge/files/git-wrapper | 27 | ||||
-rw-r--r-- | app-portage/kdemerge/kdemerge-9999.ebuild | 30 | ||||
-rw-r--r-- | app-portage/kdemerge/metadata.xml | 5 |
5 files changed, 133 insertions, 0 deletions
diff --git a/app-portage/kdemerge/Manifest b/app-portage/kdemerge/Manifest new file mode 100644 index 0000000..9fe9c46 --- /dev/null +++ b/app-portage/kdemerge/Manifest @@ -0,0 +1,24 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +- -----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX create_repolinks 1394 RMD160 e6680eb60e143bc55ccec42ae89b86cd278b57cd SHA1 c54a58763b443586784fa83a968eacf1358cbbd0 SHA256 9d9c179328fb2636e05080e22f5b513f053637b828ceb7caa377285c331a129a +AUX git-wrapper 845 RMD160 a4a4467f57e30cd8c4759acd8fe76c93b63f08df SHA1 cd806e8a60b4c984bfb2c4de5e98da181a89b9b0 SHA256 aea845604887afae861c722a71780240ea0e0a7fdf6b5393202ed479bb609e93 +EBUILD kdemerge-9999.ebuild 551 RMD160 03ca0068f0e7a2fe61f88cd908c14bc003e6990e SHA1 ab3d72b415b50b5fb5c4aa733d4ed8719ef014c4 SHA256 39178f38bd3b196288d497ef589da09277e67ec2bb28ac8a3213b4c52316af19 +MISC metadata.xml 156 RMD160 ecce3b981f150c45ae1e84e2d208e678d6124259 SHA1 b64f7c0b4e5db816d82ad19848f72118af129d35 SHA256 2f4da28506b9d4185f320f67a6191d30c7a921217ed4447ed46ea0bc4aefc79a +- -----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iF4EAREIAAYFAk6LkEEACgkQvRf93N8BhGIySgD/QRCrJr4W9ljWV+B/A/mJfrN4 +gCYL5HpsQhG+e6cQveYA/2voFvP89H3ewFYFxyuH6Hv0orjNF4t7Vy7hJvSp4X0O +=tQcG +- -----END PGP SIGNATURE----- +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iF4EAREIAAYFAk6LkzoACgkQvRf93N8BhGJ0gAD/ZEoF6hrUCRFMm8BV6m+LAOaJ +Xq2S/11O9zUUCxZt73YA/i0jVkotfAKVfTlDmjOwZKZdyMY9FPi9irXQrIG0ByMq +=TDKh +-----END PGP SIGNATURE----- diff --git a/app-portage/kdemerge/files/create_repolinks b/app-portage/kdemerge/files/create_repolinks new file mode 100644 index 0000000..862745d --- /dev/null +++ b/app-portage/kdemerge/files/create_repolinks @@ -0,0 +1,47 @@ +#!/bin/bash + +# Headers +source /etc/make.conf +. /etc/init.d/functions.sh + +# Variables +REPO_DIR="/home/tampakrap/Source_Code/" # Where to store the symlinks of the repos +GENTOO_REPO_DIR="${REPO_DIR}gentoo/" # Gentoo repos +KDE_REPO_DIR="${REPO_DIR}kde/" # KDE repos +OVERLAY_DIR="/var/lib/layman" + +# No root +if [[ $UID == 0 ]]; then + eerror 'root is forbidden' + exit 1 +fi + +# Gentoo Overlays +cd $OVERLAY_DIR +for repo in `ls -d */` +do + pushd $repo > /dev/null + einfo "Checking $repo overlay" + if [[ ! -z `grep git.overlays.gentoo.org .git/config` ]]; then + sed -i -e 's:git\://git.overlays.gentoo.org/:gentoo\::' .git/config + ewarn "gentoo git url corrected for $repo overlay" + fi + [[ -L ${GENTOO_REPO_DIR}${repo%/*} ]] || (ln -s /var/lib/layman/$repo ${GENTOO_REPO_DIR} && ewarn "New symlink for $repo overlay") + popd > /dev/null +done + +# KDE Repositories +cd $DISTDIR/egit-src +for repo in `ls -d */` +do + pushd $repo > /dev/null + einfo "Checking $repo repository" + if [[ ! -z `grep anongit.kde.org .git/config` ]]; then + sed -i -e 's:git\://anongit.kde.org:kde\::' .git/config + ewarn "kde git url corrected for $repo" + fi + if [[ ! -z `grep kde: .git/config` ]]; then + [[ -L ${KDE_REPO_DIR}${repo%/*} ]] || (ln -s ${DISTDIR}/egit-src/$repo ${KDE_REPO_DIR} && ewarn "New symlink for $repo") + fi + popd > /dev/null +done
\ No newline at end of file diff --git a/app-portage/kdemerge/files/git-wrapper b/app-portage/kdemerge/files/git-wrapper new file mode 100644 index 0000000..1c07b4b --- /dev/null +++ b/app-portage/kdemerge/files/git-wrapper @@ -0,0 +1,27 @@ +#!/bin/bash +source /etc/make.conf +USER="tampakrap" +GROUP="tampakrap" +GIT="/usr/bin/git" + +if [[ $1 == 'clone' ]]; then + # KDE Repos + if [[ $2 == "git://anongit.kde.org/"* ]] && [[ $KDE_DEVELOPER == 1 ]]; then + KDE_REPO=$(echo $2 | sed 's:git\://anongit.kde.org/::') + $GIT "$@" + chown -R $USER:$USER $DISTDIR/egit-src/$KDE_REPO + # Gentoo Repos + elif [[ $2 == "git://git.overlays.gentoo.org/"* ]] && [[ $GENTOO_DEVELOPER == 1 ]];then + GENTOO_REPO=$(echo $2 | sed 's:git\://git.overlays.gentoo.org/::') + $GIT "$@" + chown -R $USER:$GROUP $DISTDIR/egit-src/$GENTOO_REPO + else + $GIT "$@" + fi +else + if [[ ${PWD%/*} == $DISTDIR/egit-src ]] && ( grep -s -q gentoo .git/config || grep -s -q kde .git/config ); then + sudo -u $USER $GIT "$@" + else + $GIT "$@" + fi +fi diff --git a/app-portage/kdemerge/kdemerge-9999.ebuild b/app-portage/kdemerge/kdemerge-9999.ebuild new file mode 100644 index 0000000..1bfd08e --- /dev/null +++ b/app-portage/kdemerge/kdemerge-9999.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit git-2 + +DESCRIPTION="KDE app to set up a KDE Development environment" +HOMEPAGE="http://github.com/terietor/kdemerge" +EGIT_REPO_URI="git://github.com/terietor/kdemerge.git" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_install() { + #${FILESDIR}/gitconfig + + exeinto /usr/local/bin + newexe ${FILESDIR}/git-wrapper git + + exeinto /usr/local/bin + doexe ${FILESDIR}/create_repolinks +} + diff --git a/app-portage/kdemerge/metadata.xml b/app-portage/kdemerge/metadata.xml new file mode 100644 index 0000000..8d1e86a --- /dev/null +++ b/app-portage/kdemerge/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>kde</herd> +</pkgmetadata> |