]> Cypherpunks repositories - bass.git/commitdiff
include-what-you-use for LLVM 15
authorSergey Matveev <stargrave@stargrave.org>
Mon, 17 Jun 2024 11:32:44 +0000 (14:32 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 17 Jun 2024 11:32:44 +0000 (14:32 +0300)
build/distfiles/.gitignore
build/distfiles/include-what-you-use-0.19.tar.gz.meta4 [new file with mode: 0644]
build/skel/devel/include-what-you-use-0.19.do [new file with mode: 0644]

index ced3e4dbb9d41126eeb7a710fe9c69a9302e2b9a2279d414f0ed28cd2cf94c2e..0d812d1f83cba4dccc0429890bcaa241114dc709d74d6406db66357183532c4f 100644 (file)
@@ -75,6 +75,7 @@
 /imagemagick-7.1.1-33.tar.zst
 /imagemagick.git/
 /imlib2-1.12.2.tar.xz
+/include-what-you-use-0.19.tar.gz
 /iniparser-v4.2.2.tar.zst
 /iniparser.git/
 /irssi-1.4.5.tar.xz
diff --git a/build/distfiles/include-what-you-use-0.19.tar.gz.meta4 b/build/distfiles/include-what-you-use-0.19.tar.gz.meta4
new file mode 100644 (file)
index 0000000..377a3a7
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metalink xmlns="urn:ietf:params:xml:ns:metalink">
+  <file name="include-what-you-use-0.19.tar.gz">
+    <hash type="blake3-256">b6c7b5b2e08a35e94bb1c9edaddeeaea9ff9da3d44e27fbaeb4392a49aed6d5c</hash>
+    <hash type="blake2b-512">31c8148afba8246da4ab11ba2c210ef9b1db3d41c8508b492f406f25494a370cd8e1ce94d79248d3f74be430faa62026f96655cd8f259c6024fb8f7af615f044</hash>
+    <hash type="blake2b-256">fdf4676c02df14b5d43a7e29e6ee620d55a8649895173267c53f971c98fff392</hash>
+    <hash type="skein-512">360f5a29b2a48a78f123366392316532a12eecfeaf25f1dbbd4a504eced68ce027fbca76525f695a5b960ae2f6c913937c260fc434ac57697111cc7270773c7a</hash>
+    <hash type="shake128">43eccc12bb793e8d20384954fa259cd1811e6b30b4150b50f34ca0fa093330fe</hash>
+    <hash type="shake256">152bf821e0de4c8cbe85ec6ff137cc543680d5364012e5f21a1c7a9a18e6555bf4461aae6bfc991f0d93607e7a0fe638495e63d9e86ee8985fd6ef4664d42bac</hash>
+    <hash type="sha-512">3f054feaa3767bdc6c51fdce32174c08897c7343a6e6776a690c93ed55878cc28dfaf6878708af18706b5f3814c3ba240889049017f26cace381cfd1ab21cf82</hash>
+    <hash type="sha-256">2b10157b60ea08adc08e3896b4921c73fcadd5ec4eb652b29a34129d501e5ee0</hash>
+    <hash type="streebog-512">7e7ebec3e1cf5f3f82e3e1a88597956b0d467b7211b26f8c040802a6557e7a7c124aeea4129eb1d7e191465167dfcc3644554fa9acbf6e84c98179439a368142</hash>
+    <hash type="streebog-256">9c12dbad7c43d0f7d1eed2b7ca6bc386617a712c4be329d9cebfa5fa51cb7337</hash>
+    <hash type="xxh3-128">ce8ac544050138ed8f6fb3e75001ed0c</hash>
+    <size>757653</size>
+    <url>https://include-what-you-use.org/downloads/include-what-you-use-0.19.src.tar.gz</url>
+  </file>
+</metalink>
diff --git a/build/skel/devel/include-what-you-use-0.19.do b/build/skel/devel/include-what-you-use-0.19.do
new file mode 100644 (file)
index 0000000..09e0175
--- /dev/null
@@ -0,0 +1,32 @@
+# That skel has hardcoded assumption that FreeBSD's llvm15 package is installed.
+
+[ -n "$BASS_ROOT" ] || BASS_ROOT="$(dirname "$(realpath -- "$0")")"/../../../..
+sname=$1.do . "$BASS_ROOT"/lib/rc
+. "$BASS_ROOT"/build/skel/common.rc
+
+bdeps="
+rc-paths
+stow
+archivers/zstd
+devel/cmake-3.28.3
+devel/gmake-4.4.1
+devel/pkgconf-2.1.1
+"
+redo-ifchange $bdeps "$DISTFILES"/$NAME.tar.gz
+hsh=$("$BASS_ROOT"/build/bin/cksum $BASS_REV $SPATH)
+. "$BASS_ROOT"/build/lib/create-tmp-for-build.rc
+"$BASS_ROOT"/build/bin/pkg-inst $bdeps
+. ./rc
+$TAR xf "$DISTFILES"/$NAME.tar.gz
+"$BASS_ROOT"/bin/rm-r "$SKELBINS"/$ARCH/$NAME-$hsh
+
+cd include-what-you-use
+mkdir build
+cd build
+cmake -G "Unix Makefiles" -DCMAKE_PREFIX_PATH=/usr/local/llvm15 .. >&2
+gmake -j$MAKE_JOBS >&2
+mkdir -p "$SKELBINS"/$ARCH/$NAME-$hsh/bin
+mv bin/include-what-you-use "$SKELBINS"/$ARCH/$NAME-$hsh/bin
+
+cd "$SKELBINS"/$ARCH
+"$BASS_ROOT"/build/lib/mk-pkg $NAME-$hsh