Commit 7e498f16 authored by bguillaum's avatar bguillaum
Browse files

clean packaging folder

git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/semagramme/dep2pict/trunk@8738 7838e531-6607-4d57-9587-6c381814729c
parent 9a2ce266
Package: dep2pict
Version: @VERSION@
Section: base
Priority: optional
Architecture: all
Installed-Size: @SIZE@
Depends: ocaml (>=3.11), libcaml-log (=@libcaml-log-VERSION@), libcaml-dep2pict (=@libcaml-dep2pict-VERSION@), libcairo-ocaml-dev
Suggests: libc6, librsvg2-bin
Maintainer: Paul MASSON <paul.masson@inria.fr>
Description: Dep2pict is a program to draw dependency structures.
#! /bin/sh
cd @DATA_DIR@src
tar -xf dep2pict-@VERSION@.tar.gz
cd dep2pict-@VERSION@
./configure > log.install
make >> log.install
make install >> log.install
cd ..
rm -rf dep2pict-@VERSION@
LAUNCHER="/usr/share/applications/dep2pict.desktop"
REP="/usr/share/desktop-directories/calligramme.directory"
DESKTOP="[Desktop Entry]\nName=Dep2pict\nName[fr]=Dep2pict\nComment=Draw dependencies\nComment[fr]=Graphes de dépendences\nExec=dep2pict\nIcon=@DATA_DIR@dep2pict.png\nTerminal=false\nType=Application\nCategories=Calligramme;"
FOLDER="[Desktop Entry]\nEncoding=UTF-8\nName=Calligramme\nComment=Calligramme App\nIcon=@DATA_DIR@/calligramme.png\nType=Directory"
touch $REP
echo "$FOLDER" > $REP
if test -e $LAUNCHER; then : rm -rf $LAUNCHER ; fi
touch $LAUNCHER
echo "$DESKTOP" > $LAUNCHER
xdg-desktop-menu install --novendor $REP $LAUNCHER
xdg-desktop-menu forceupdate --mode user
xdg-desktop-menu forceupdate --mode system
#! /bin/sh
rm -rf `which dep2pict`
#! /bin/sh
VERSION=$1
md5=`openssl md5 dep2pict-$VERSION.tar.gz | sed "s|MD5(dep2pict-$VERSION\.tar.gz)= ||"`
sha1=`openssl sha1 dep2pict-$VERSION.tar.gz | sed "s|SHA1(dep2pict-$VERSION\.tar.gz)= ||"`
rmd160=`openssl rmd160 dep2pict-$VERSION.tar.gz | sed "s|RIPEMD160(dep2pict-$VERSION\.tar.gz)= ||"`
cp portfile/Portfile.default Portfile
sed -i "s|@MD5_SUM@|$md5|" Portfile
sed -i "s|@SHA1_SUM@|$sha1|" Portfile
sed -i "s|@RMD160_SUM@|$rmd160|" Portfile
sed -i "s|@VERSION@|$VERSION|" Portfile
#! /bin/sh
VERSION=$1
INSTALL_DIR=$2
DATA_DIR=$3
DOC_DIR=$4
rm -rf packaging/dep2pict*.deb
mkdir -p packaging/deb/DEBIAN/
mkdir -p packaging/deb$DATA_DIR/src
cp packaging/dep2pict-$VERSION.tar.gz packaging/deb/$DATA_DIR/src
size="0"
cp packaging/DEBIAN/control packaging/deb/DEBIAN/control
cp packaging/DEBIAN/postinst packaging/deb/DEBIAN/postinst
cp packaging/DEBIAN/postrm packaging/deb/DEBIAN/postrm
chmod 755 packaging/deb/DEBIAN/postrm
chmod 755 packaging/deb/DEBIAN/postinst
sed -i "s|@VERSION@|$VERSION|" packaging/deb/DEBIAN/control
sed -i "s|@SIZE@|$size|" packaging/deb/DEBIAN/control
sed -i "s|@DATA_DIR@|$DATA_DIR|" packaging/deb/DEBIAN/postinst
sed -i "s|@VERSION@|$VERSION|" packaging/deb/DEBIAN/postinst
(cd packaging/ && dpkg-deb --build deb && cd -) || (echo "Fatal error : maybe the version number is null (make ... VERSION=...)" && exit 1)
mv packaging/deb.deb packaging/dep2pict-$VERSION-i386.deb
rm -rf packaging/deb
PortSystem 1.0
name dep2pict
version @VERSION@
categories graphics
platforms darwin
maintainers inria.fr:paul.masson
description Dep2pict
long_description Tool to draw dependencies graph
homepage http://wikilligramme.loria.fr
master_sites http://wikilligramme.loria.fr/macport/@repos@/archive/dep2pict
checksums md5 @MD5_SUM@ \
sha1 @SHA1_SUM@ \
rmd160 @RMD160_SUM@
depends_lib port:ocaml \
port:librsvg \
port:libcaml-cairo-ocaml \
port:lablgtk2 \
port:libcaml-dep2pict
use_parallel_build no
destroot {
system "cd ${worksrcpath} && make destroot DESTDIR=${destroot}"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment