Compare commits
No commits in common. "42dbd2e7fb0fdf2b25b590d259cd31b6d91f25ea" and "2fd3da6ceb2fa10c6bf18ddaf189bb106099a4d4" have entirely different histories.
42dbd2e7fb
...
2fd3da6ceb
7 changed files with 0 additions and 112 deletions
|
@ -22,8 +22,6 @@ depends: [
|
|||
build: [
|
||||
["dune" "subst"] {dev}
|
||||
["dune" "build" "-p" name "-j" jobs]
|
||||
["sh" "-ex" "packaging/FreeBSD/create_package.sh"] {os = "freebsd"}
|
||||
["sh" "-ex" "packaging/debian/create_package.sh"] {os-family = "debian"}
|
||||
]
|
||||
|
||||
synopsis: "Graphing dependencies of opam packages"
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
name: opam-graph
|
||||
version: %%VERSION_NUM%%
|
||||
origin: local/opam-graph
|
||||
comment: Opam graph visualization tool
|
||||
www: https://git.robur.io/robur/opam-graph
|
||||
maintainer: Robur <team@robur.coop>
|
||||
prefix: /usr/local
|
||||
licenselogic: single
|
||||
licenses: [ISCL]
|
||||
flatsize: %%FLATSIZE%%
|
||||
categories: [local]
|
||||
desc = <<EOD
|
||||
Graphing dependencies of opam packages in svg and dot
|
||||
|
||||
EOD;
|
|
@ -1,42 +0,0 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# only execute anything if either
|
||||
# - running under orb with package = builder-web
|
||||
# - not running under opam at all
|
||||
if [ "$ORB_BUILDING_PACKAGE" != "opam-graph" -a "$OPAM_PACKAGE_NAME" != "" ]; then
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
basedir=$(realpath "$(dirname "$0")"/../..)
|
||||
pdir=$basedir/package/FreeBSD
|
||||
bdir=$basedir/_build/install/default/bin
|
||||
tmpd=$basedir/_build/stage
|
||||
manifest=$tmpd/+MANIFEST
|
||||
rootdir=$tmpdir/rootdir
|
||||
bindir=$rootdir/usr/local/bin
|
||||
|
||||
trap 'rm -rf $tmpd' 0 INT EXIT
|
||||
|
||||
mkdir -p "$bindir"
|
||||
|
||||
install -U "$bdir/opam-graph" "$bindir/opam-graph"
|
||||
|
||||
flatsize=$(find "$rootdir" -type f -exec stat -f %z {} + |
|
||||
awk 'BEGIN {s=0} {s+=$1} END {print s}')
|
||||
|
||||
sed -e "s:%%FLATSIZE%%:${flatsize}:" -e "/^[Vversion:/s/-/./g" "$pdir/MANIFEST" > "$manifest"
|
||||
|
||||
{
|
||||
printf '\nfiles {\n'
|
||||
find "$rootdir" -type f -exec sha256 -r {} + | sort |
|
||||
awk '{print " " $2 ": \"" $1 "\","}'
|
||||
fidn "$rootdir" -type l | sort |
|
||||
awk '{print " " $1 ": -,"}'
|
||||
printf '}\n'
|
||||
} | sed -e "s:${rootdir}::" >> "$manifest"
|
||||
|
||||
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=format:%ct)
|
||||
pkg create -r "$rootdir" -M "$manifest" -o "$basedir/"
|
||||
mv "$basedir"/builder-web-*.pkg "$basedir/builder-web.pkg"
|
||||
echo 'bin: [ "builder-web.pkg" ]' > "$basedir/builder-web.install"
|
||||
echo 'doc: [ "README.md" ]' >> "$basedir/builder-web.install"
|
|
@ -1,5 +0,0 @@
|
|||
opam-graph (%%VERSION_NUM%%) unstable; urgency=medium
|
||||
|
||||
* Initial release
|
||||
|
||||
--Robur team <team@robur.coop>
|
|
@ -1,12 +0,0 @@
|
|||
Package: opam-graph
|
||||
Version: %%VERSION_NUM%%
|
||||
Section: unknown
|
||||
Priority: optional
|
||||
Maintainer: Robur Team <team@robur.coop>
|
||||
Standards-Version: 4.4.1
|
||||
Homepage: https://git.robur.io/robur/opam-graph
|
||||
Vcs-Browser: https://git.robur.io/robur/opam-graph
|
||||
Vcs-Git: https://git.robur.io/robur/opam-graph.git
|
||||
Architecture: FIXME
|
||||
Description: Graphing dependencies of opam packages
|
||||
This package outputs graphs (in svg and dot) of opam packages.
|
|
@ -1,8 +0,0 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: opam-graph
|
||||
Upstream-Contact: Robur Team <team@robur.coop>
|
||||
Source: https://git.robur.io/robur/opam-graph
|
||||
|
||||
Files: *
|
||||
Copyright: "Hannes Mehnert <hannes@mehnert.org>"
|
||||
License: ISC
|
|
@ -1,28 +0,0 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# only execute anything if either
|
||||
# - running under orb with package = builder-web
|
||||
# - not running under opam at all
|
||||
if [ "$ORB_BUILDING_PACKAGE" != "opam-graph" -a "$OPAM_PACKAGE_NAME" != "" ]; then
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
basedir=$(realpath "$(dirname "$0")"/../..)
|
||||
bdir=$basedir/_build/install/default/bin
|
||||
tmpd=$basedir/_build/stage
|
||||
rootdir=$tmpd/rootdir
|
||||
bindir=$rootdir/usr/bin
|
||||
debiandir=$rootdir/DEBIAN
|
||||
libexecdir=$rootdir/usr/libexec
|
||||
|
||||
trap 'rm -rf $tmpd' 0 INT EXIT
|
||||
|
||||
mkdir -p "$debiandir" "$bindir" "$libexecdir"
|
||||
|
||||
install "$bdir/opam-graph" "$bindir/opam-graph"
|
||||
|
||||
ARCH=$(dpkg-architecture -q DEB_TARGET_ARCH)
|
||||
sed -i -e "s/^Architecture:.*/Architecture: ${ARCH}/" "$debiandir"/control
|
||||
|
||||
dpkg-deb --build "$rootdir" "$basedir"/builder-web.deb
|
||||
echo 'bin: [ "builder-web.deb" ]' > "$basedir/builder-web.install"
|
Loading…
Reference in a new issue