mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
libraries/apache-ivy: Added to 12.2 repository
This commit is contained in:
parent
40e7f7999a
commit
fc7ee16b82
5 changed files with 102 additions and 0 deletions
10
libraries/apache-ivy/README
Normal file
10
libraries/apache-ivy/README
Normal file
|
@ -0,0 +1,10 @@
|
|||
apache-ivy (apache-ant dependency manager)
|
||||
|
||||
Ivy is a library/tool for managing (recording, tracking, resolving and
|
||||
reporting) project dependencies.
|
||||
|
||||
You can pass an alternate vlalue for ANT_HOME if it is not set to
|
||||
/usr/share/ant on your system.
|
||||
|
||||
This package includes documention and example-src.zip in the standard
|
||||
documentation directory.
|
53
libraries/apache-ivy/apache-ivy.SlackBuild
Normal file
53
libraries/apache-ivy/apache-ivy.SlackBuild
Normal file
|
@ -0,0 +1,53 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for apache-ivy
|
||||
# Written by Vincent Batts, vbatts@hashbangbash.com
|
||||
|
||||
PRGNAM=apache-ivy
|
||||
VERSION=2.1.0_rc1
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
TEAM=$(echo $PRGNAM | cut -d- -f1)
|
||||
PROJECT=$(echo $PRGNAM | cut -d- -f2)
|
||||
SRC_VERSION=$(echo $VERSION | tr _ -)
|
||||
ANT_HOME=${ANT_HOME:-/usr/share/ant}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$SRC_VERSION
|
||||
tar xvf $CWD/$PRGNAM-$SRC_VERSION-bin.tar.gz
|
||||
cd $PRGNAM-$SRC_VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
mkdir -p $PKG/usr/share/java $PKG/$ANT_HOME/lib
|
||||
cp $PROJECT-$SRC_VERSION.jar $PKG/$ANT_HOME/lib/
|
||||
cd $PKG/usr/share/java
|
||||
ln -s $ANT_HOME/lib/$PROJECT-$SRC_VERSION.jar $PROJECT.jar
|
||||
cd -
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
zip -9 -r $PKG/usr/doc/$PRGNAM-$VERSION/example-src.zip src
|
||||
cp -a CHANGES.txt LICENSE NOTICE README RELEASE_NOTES doc \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
8
libraries/apache-ivy/apache-ivy.info
Normal file
8
libraries/apache-ivy/apache-ivy.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="apache-ivy"
|
||||
VERSION="2.1.0_rc1"
|
||||
HOMEPAGE="http://ant.apache.org/ivy/"
|
||||
DOWNLOAD="http://apache.tradebit.com/pub/ant/ivy/2.1.0-rc1/apache-ivy-2.1.0-rc1-bin.tar.gz"
|
||||
MD5SUM="a1542db09e1353d259a1e634eb338b03"
|
||||
MAINTAINER="Vincent Batts"
|
||||
EMAIL="vbatts@hashbangbash.com"
|
||||
APPROVED="rworkman"
|
12
libraries/apache-ivy/doinst.sh
Normal file
12
libraries/apache-ivy/doinst.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
postinstall scriptlet (using /bin/sh):
|
||||
rm -f /usr/share/java/ivy.jar
|
||||
ln -s /usr/share/java/ivy-1.4.1.jar /usr/share/java/ivy.jar
|
||||
postuninstall scriptlet (using /bin/sh):
|
||||
if [ "$1" = "0" ]; then
|
||||
# Remove the old link
|
||||
rm -f /usr/share/java/ivy.jar
|
||||
|
||||
# Put back a new link. It's OK if this fails, that just means there
|
||||
# is no other version of the package installed
|
||||
ln -fs `ls -tr /usr/share/java/ivy-* 2>/dev/null|tail -n 1` /usr/share/java/ivy.jar || true
|
||||
fi
|
19
libraries/apache-ivy/slack-desc
Normal file
19
libraries/apache-ivy/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
apache-ivy: apache-ivy (apache-ant dependency manager)
|
||||
apache-ivy:
|
||||
apache-ivy: Ivy is a tool for managing (recording, tracking, resolving and
|
||||
apache-ivy: reporting) project dependencies.
|
||||
apache-ivy:
|
||||
apache-ivy: Homepage http://ant.apache.org/ivy/
|
||||
apache-ivy:
|
||||
apache-ivy:
|
||||
apache-ivy:
|
||||
apache-ivy:
|
||||
apache-ivy:
|
Loading…
Reference in a new issue