Subject: [alpine-aports] [PATCH] testing/coccinelle: New aport

From: Marian Buschsieweke <[email-masked]>
Date: Sat, 9 Mar 2019 21:55:01 +0100

A SmPL (Semantic Patch Language) implementation
http://coccinelle.lip6.fr/
---
 testing/coccinelle/APKBUILD            |  55 +++++++++++++++++++++++++
 testing/coccinelle/SCORE_expected.sexp | Bin 0 -> 16715 bytes
 2 files changed, 55 insertions(+)
 create mode 100644 testing/coccinelle/APKBUILD
 create mode 100644 testing/coccinelle/SCORE_expected.sexp

diff --git a/testing/coccinelle/APKBUILD b/testing/coccinelle/APKBUILD
new file mode 100644
index 0000000000..d5f7c6e26c
--- /dev/null
+++ b/testing/coccinelle/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: Marian Buschsieweke <[email-masked]>
+# Maintainer: Marian Buschsieweke <[email-masked]>
+pkgname=coccinelle
+pkgver=1.0.7
+pkgrel=0
+pkgdesc="A SmPL (Semantic Patch Language) implementation"
+url="http://coccinelle.lip6.fr/"
+# x86, armhf, s390x: limited by ocaml aport
+arch="all !x86 !armhf !armv7 !s390x"
+license="GPL-2.0-only"
+subpackages="$pkgname-doc"
+makedepends="
+	autoconf
+	automake
+	ocaml-dev
+	ocaml-findlib-dev
+	ocaml-num-dev
+	ocaml-ocamldoc
+	pcre-dev
+	"
+depends="python3"
+source="
+	http://$pkgname.lip6.fr/distrib/$pkgname-$pkgver.tar.gz
+	SCORE_expected.sexp
+	"
+builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+	cd "$builddir"
+	ln -sf ../../SCORE_expected.sexp tests/
+}
+
+build() {
+	cd "$builddir"
+	./autogen
+	./configure \
+		--prefix=/usr \
+		--enable-release=yes \
+		--with-python=/usr/bin/python3
+	# Workaround: Build fails without forbidding parallel build
+	make -j 1
+}
+
+check() {
+	cd "$builddir"
+	make check
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" MANDIR="/usr/share/man" install
+}
+
+sha512sums="94770f9ac41f34b519e1680e0b7b042c15862b3df7cfa94fbbc54d1ed0ee4743a993d3eac271decdd46d1fc3fcbe4aadabfcbab91b691c2b6e1a6019b46f1d28  coccinelle-1.0.7.tar.gz
+2f8aa98483c1710fb9a660de04f6a7ba0014e9ea3caf2b9d13a27c73b899afa86d799f78f119135739727a3570247585cad61a2a3a7fda8868a0fd75e1498d6b  SCORE_expected.sexp"
diff --git a/testing/coccinelle/SCORE_expected.sexp b/testing/coccinelle/SCORE_expected.sexp
new file mode 100644
index 0000000000000000000000000000000000000000..e751b0aeab6504b13f6546acfdb15d4ec064eac8
GIT binary patch
literal 16715
zcmcg!OOM=Ec5WN9n9?#pHbE8~8R=p@yB^(YNw$=Z6*(|qTY?{h0G7dFu~^k~v&b^Z
z>aKPmAd5j(S!k1Gwprh0RzZNQvdJRIpU6+hF5h`vKB}u_NfV{vX*J2q`#k46-+6F;
z{}2E4F9!#Iae8p@tNFpfpMG_4@W<nS{ount`SroC4-U@G%qTzivvBUsGCv51S(u;U
z$J`6jBrm*ZwT`18!XJ6c&&=Vyi8M0fdAga!q37p$v`q9(Gl<h<8AnNIn{^jyw(<*k
z+nvvrWBT*eor8l9{_FFvo;>^d>!(k?eK?O63#Ujg!sMaz)cNf<j(g{`C=Q)Zo;-W<
z<nw3Wef#{oZ$JC|i>HtK4t4IF^qnA$H><>%;4iFTo#xIX=k(-`<M>&+N#?j}KW+DM
zeRZCqCoHH4lLEI}t*7|?)puWf@v(dN`IFD@c0QKD?iOKQ<VSXncXh1eax5CP8f(%R
z%e`f+zx?#C%2Duw<M2{l?7=23+)p~rW$uLAbr=*l1ikyX)4>e6_1T#-829fvJ^FQa
z#`oljlNWvw1x}Rkj$EeE-0|Z$4XBrNlLeuh7uhB#oOKX+^YGH?;#VK-3n!XyJJQwP
z@IQlA3-h#p-rOFVcaPhYYtdU}Tj}oQoilTUJxZ3LS6r`EpiGZ;)=%al1zpT5nu~y#
zPP7R10p#w`&#WY2_A71EUin+O4f%>7m(-o!=#un>w&x2PR7LO1Jc|8U80X$9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