From 5a49c29fc3249617ed00cd8e5fd1965ebb497f65 Mon Sep 17 00:00:00 2001 From: evermind Date: Fri, 9 Mar 2007 15:29:01 +0000 Subject: [PATCH] added ebuild_debug (script to reduce debuging ebuilds) git-svn-id: svn://svn.tuxfamily.org/svnroot/proaudio/proaudio/trunk/overlays/proaudio@580 d5c9a09b-2911-0410-9af3-a98ebd2cfc69 --- 00-DETAILED-PACKAGES-LIST | 7 +++++ convert_live_keywords | 5 +--- ebuild_debug | 61 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 4 deletions(-) create mode 100755 ebuild_debug diff --git a/00-DETAILED-PACKAGES-LIST b/00-DETAILED-PACKAGES-LIST index addbb3f4..50bc33eb 100644 --- a/00-DETAILED-PACKAGES-LIST +++ b/00-DETAILED-PACKAGES-LIST @@ -193,6 +193,13 @@ Homepage: http://home.gna.org/lv2dynparam/ +#------- media-libs/oscpack -------- + oscpack-1.0.2 arch: amd64 ppc sparcs x86 + Description: Set of C++ classes for packing and unpacking + OSC packets + Homepage: http://www.audiomulch.com/~rossb/code/oscpack + + #------- media-libs/phat -------- phat-0.3.1 arch: amd64 ppc sparc x86 phat-0.4.0 arch: amd64 ppc sparc x86 diff --git a/convert_live_keywords b/convert_live_keywords index d20e1d0e..d30d68fe 100755 --- a/convert_live_keywords +++ b/convert_live_keywords @@ -1,11 +1,8 @@ #!/bin/bash # (c) 2007 Frieder Bürzele # licence gnu gpl v2 -# this script includes some smaller scripts which cleans the repository a bit -# and remove unneeded files - -# exit script it not executed in overlay root +# exit script if not executed in overlay root if [ ! -e .svn/text-base/generate-detailed-packages-list.svn-base ] ;then echo "please execute this script just inside the overlay root" exit 1 diff --git a/ebuild_debug b/ebuild_debug new file mode 100755 index 00000000..b7506c9f --- /dev/null +++ b/ebuild_debug @@ -0,0 +1,61 @@ +#!/bin/bash +# (c) 2007 Frieder Bürzele +# licence gnu gpl v2 +# Descrition: +# it's basically a wrapper around ebuild which also is useful +# if you've just modified the ebuild a bit and won't want to +# recompile the whole pkg +# (the magic here is just to change the time of the pkg's WORKDIR) +# Usage: +# same as just the ebuild command +# it's to best place a symlink into /usr/local/bin/ to run this script +# eg ln -s `pwd`/ebuild_debug /usr/local/bin/ + + +# get category +get_cat() { + # go to dirs down (get the root_path for the tree) + local lCAT_ONLY="${PWD%/*}" + local lROOT_DIR="${lCAT_ONLY%/*}" + local lCATEGORY="${lCAT_ONLY/${lROOT_DIR}}" + echo $lCATEGORY +} + +get_ebuild_name() { + for i in ${args[@]};do + if [[ "$i" = *.ebuild* ]];then + local lEBUILD="$i" + lEBUILD="${lEBUILD##*/}" + break + fi + done + echo "${lEBUILD/.ebuild/}" +} + +# programm flow + +# launch ebuild binary +ebuild $@ +[ "$?" != "0" ] && exit 1 + +args=("$@") + +. /etc/make.conf +[ -z "$PORTAGE_TMPDIR" ] && PORTAGE_TMPDIR="/var/tmp" + +CATEGORY="$(get_cat)" +EBUILD_NAME="$(get_ebuild_name)" +if [ -z "$CATEGORY" -o -z "$EBUILD_NAME" ];then + echo "ERROR: could not determine CATEGORY or EBUILD_NAME" + echo -e "CATEGORY was: \"$CATEGORY\"" + echo -e "EBUILD_NAME was: \"$EBUILD_NAME\"" + exit 1 +fi + +# working_dir to touch +gTOUCH_WORKDIR="${PORTAGE_TMPDIR}/portage${CATEGORY}/${EBUILD_NAME}/work" +if [ -e "$gTOUCH_WORKDIR" ] ;then + touch $gTOUCH_WORKDIR +else + echo -e "could not change mtime as \"$gTOUCH_WORKDIR\" does not exist" +fi