aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild/utils
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-03-19 09:14:21 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-03-19 09:14:21 +0000
commit6a52d0f19f9e35338990411e9374b19cc1be37a9 (patch)
tree3c25e29a78beb9effdc7fd9c6bbd3538606eecca /paludis/repositories/e/ebuild/utils
parent84a20c706b382622a26138287a964acc17aeb2fa (diff)
downloadpaludis-6a52d0f19f9e35338990411e9374b19cc1be37a9.tar.gz
paludis-6a52d0f19f9e35338990411e9374b19cc1be37a9.tar.xz
kdebuild-1 support. Fixes: ticket:500, ticket:523, ticket:524, ticket:526, ticket:528, ticket:530, ticket:531, ticket:532, ticket:533, ticket:534, ticket:535, ticket:536, ticket:537, ticket:538, ticket:539
Diffstat (limited to 'paludis/repositories/e/ebuild/utils')
-rw-r--r--paludis/repositories/e/ebuild/utils/Makefile.am2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dosym10
-rw-r--r--paludis/repositories/e/ebuild/utils/exheres-0/Makefile.am1
-rw-r--r--paludis/repositories/e/ebuild/utils/kdebuild-1/Makefile.am64
-rw-r--r--paludis/repositories/e/ebuild/utils/kdebuild-1/banned_in_eapi_kdebuild-129
5 files changed, 103 insertions, 3 deletions
diff --git a/paludis/repositories/e/ebuild/utils/Makefile.am b/paludis/repositories/e/ebuild/utils/Makefile.am
index df8187368..74ac3fb21 100644
--- a/paludis/repositories/e/ebuild/utils/Makefile.am
+++ b/paludis/repositories/e/ebuild/utils/Makefile.am
@@ -1,5 +1,5 @@
MAINTAINERCLEANFILES = Makefile.in
-SUBDIRS = . exheres-0
+SUBDIRS = . exheres-0 kdebuild-1
libexecprogdir = $(libexecdir)/paludis/utils
diff --git a/paludis/repositories/e/ebuild/utils/dosym b/paludis/repositories/e/ebuild/utils/dosym
index a54b1158e..e1cbceaba 100755
--- a/paludis/repositories/e/ebuild/utils/dosym
+++ b/paludis/repositories/e/ebuild/utils/dosym
@@ -36,8 +36,14 @@ if [[ ${#} -ne 2 ]]; then
fi
if [[ ! -d $(dirname "${D}$2") ]]; then
- ebuild_notice "qa" "$0: target directory $(dirname "${D}$2") does not exist; creating. Please fix the ebuild to create it explicitly."
- dodir $(dirname $2)
+ if [[ -n "${PALUDIS_DOSYM_NO_MKDIR}" ]] ; then
+ echo "dosym: error: target directory $(dirname "${D}$2" ) does not exist" 1>&2
+ kill -s SIGUSR1 "${EBUILD_KILL_PID}"
+ exit 123
+ else
+ ebuild_notice "qa" "$0: target directory $(dirname "${D}$2") does not exist; creating. Please fix the ebuild to create it explicitly."
+ dodir $(dirname $2)
+ fi
fi
ln -snf "${1}" "${D}${2}"
diff --git a/paludis/repositories/e/ebuild/utils/exheres-0/Makefile.am b/paludis/repositories/e/ebuild/utils/exheres-0/Makefile.am
index 50da7bab8..48f4dc658 100644
--- a/paludis/repositories/e/ebuild/utils/exheres-0/Makefile.am
+++ b/paludis/repositories/e/ebuild/utils/exheres-0/Makefile.am
@@ -49,6 +49,7 @@ CLEANFILES = *~ $(bannedscripts)
$(bannedscripts) : banned_in_eapi_exheres-0
cat $? > $@
+ chmod +x $@
check_PROGRAMS =
diff --git a/paludis/repositories/e/ebuild/utils/kdebuild-1/Makefile.am b/paludis/repositories/e/ebuild/utils/kdebuild-1/Makefile.am
new file mode 100644
index 000000000..01527e56a
--- /dev/null
+++ b/paludis/repositories/e/ebuild/utils/kdebuild-1/Makefile.am
@@ -0,0 +1,64 @@
+MAINTAINERCLEANFILES = Makefile.in
+SUBDIRS = .
+
+libexecprogdir = $(libexecdir)/paludis/utils/kdebuild-1
+
+libexecprog_SCRIPTS = \
+ dohard \
+ dohtml \
+ dosed \
+ donewins \
+ prepall \
+ prepallstrip \
+ prepstrip \
+ prepallman \
+ prepman \
+ prepallinfo \
+ prepinfo \
+ prepdocs \
+ prepalldocs \
+ ecompress \
+ ecompressdir \
+ banned_in_eapi_kdebuild-1
+
+AM_CXXFLAGS = -I$(top_srcdir) @PALUDIS_CXXFLAGS@
+
+TESTS_ENVIRONMENT = env \
+ PALUDIS_UTILITY_PATH_SUFFIXES="exheres-0" \
+ PALUDIS_EBUILD_DIR="`$(top_srcdir)/paludis/repositories/e/ebuild/utils/canonicalise \
+ $(top_srcdir)/paludis/repositories/e/ebuild/`" \
+ PALUDIS_EBUILD_DIR_FALLBACK="`$(top_srcdir)/paludis/repositories/e/ebuild/utils/canonicalise $(top_builddir)/paludis/repositories/e/ebuild/`" \
+ TOP_BUILD_DIR="`$(top_srcdir)/paludis/repositories/e/ebuild/utils/canonicalise $(top_builddir)/`" \
+ PALUDIS_EBUILD_LOG_LEVEL="silent" \
+ PALUDIS_DISTRIBUTION="gentoo" \
+ TEST_SCRIPT_DIR="$(srcdir)/" \
+ bash $(top_srcdir)/paludis/repositories/e/ebuild/utils/run_test.bash
+
+TESTS =
+
+EXTRA_DIST = $(libexecprog_SCRIPTS) $(check_SCRIPTS) \
+ banned_in_eapi_kdebuild-1 $(TESTS)
+
+bannedscripts = prepall prepallstrip prepstrip prepallman prepman prepallinfo \
+ prepinfo prepdocs prepalldocs dohard donewins dosed dohtml \
+ ecompress ecompressdir
+
+CLEANFILES = *~ $(bannedscripts)
+
+$(bannedscripts) : banned_in_eapi_kdebuild-1
+ cat $? > $@
+ chmod +x $@
+
+check_PROGRAMS =
+
+built-sources : $(BUILT_SOURCES)
+ for s in `echo $(SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s built-sources || exit 1 ; done
+
+distcheck-deps-local : $(DISTCHECK_DEPS)
+
+distcheck-deps : distcheck-deps-subdirs
+
+distcheck-deps-subdirs :
+ for s in $(SUBDIRS) . ; do if test x$$s = x. ; then $(MAKE) distcheck-deps-local || exit 1 ; \
+ else $(MAKE) -C $$s distcheck-deps || exit 1 ; fi ; done
+
diff --git a/paludis/repositories/e/ebuild/utils/kdebuild-1/banned_in_eapi_kdebuild-1 b/paludis/repositories/e/ebuild/utils/kdebuild-1/banned_in_eapi_kdebuild-1
new file mode 100644
index 000000000..a987d4e18
--- /dev/null
+++ b/paludis/repositories/e/ebuild/utils/kdebuild-1/banned_in_eapi_kdebuild-1
@@ -0,0 +1,29 @@
+#!/bin/bash
+# vim: set sw=4 sts=4 et :
+
+# Copyright (c) 2007, 2008 Ciaran McCreesh
+#
+# This file is part of the Paludis package manager. Paludis is free software;
+# you can redistribute it and/or modify it under the terms of the GNU General
+# Public License as published by the Free Software Foundation; either version
+# 2 of the License, or (at your option) any later version.
+#
+# Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+# details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+# Place, Suite 330, Boston, MA 02111-1307 USA
+
+COLOUR_RED=$'\e[31;01m'
+COLOUR_NORMAL=$'\e[0m'
+
+echo "${COLOUR_RED}!!! Ebuild bug: '$(basename ${0} )' banned in EAPI kdebuild-1${COLOUR_NORMAL}"
+echo "$(basename ${0} ): making ebuild PID ${EBUILD_KILL_PID} exit with error" 1>&2
+kill -s SIGUSR1 "${EBUILD_KILL_PID}"
+
+exit 123
+
+