aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild/0002-abuild-add-provides-information.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-04 13:57:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-08-16 12:50:06 +0000
commit52dcc2d72d64266246f6d6253b8c9804d4d538c6 (patch)
treea3fcbeb968eeeb0ece88764c3c7b5e3d2625dca0 /main/abuild/0002-abuild-add-provides-information.patch
parent0b4ebd18832b300a78a05aac12a5c949f34e48f6 (diff)
downloadaports-52dcc2d72d64266246f6d6253b8c9804d4d538c6.tar.bz2
aports-52dcc2d72d64266246f6d6253b8c9804d4d538c6.tar.xz
main/abuild: start add 'provides' info
ref #574
Diffstat (limited to 'main/abuild/0002-abuild-add-provides-information.patch')
-rw-r--r--main/abuild/0002-abuild-add-provides-information.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/abuild/0002-abuild-add-provides-information.patch b/main/abuild/0002-abuild-add-provides-information.patch
new file mode 100644
index 0000000000..a4ea869641
--- /dev/null
+++ b/main/abuild/0002-abuild-add-provides-information.patch
@@ -0,0 +1,29 @@
+From 76e93e602f74e0fcf8cfc708fd93b4f71b74781e Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Tue, 4 Sep 2012 13:37:26 +0000
+Subject: [PATCH 2/2] abuild: add provides information
+
+---
+ abuild.in | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/abuild.in b/abuild.in
+index 3acec46..207cc66 100755
+--- a/abuild.in
++++ b/abuild.in
+@@ -919,8 +919,11 @@ trace_apk_deps() {
+ fi
+ done
+
+- [ -z "$autodeps" ] && return 0
+ echo "# automatically detected:" >> "$dir"/.PKGINFO
++ if [ -f "$dir"/.provides-so ]; then
++ sed 's/^/provides = /' "$dir"/.provides-so >> "$dir"/.PKGINFO
++ fi
++ [ -z "$autodeps" ] && return 0
+ for i in $autodeps; do
+ echo "depend = $i" >> "$dir"/.PKGINFO
+ done
+--
+1.7.12
+