diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2017-06-30 13:09:58 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-06-30 13:09:58 +0700 |
commit | 563f93ecdccde1cfc4224cde4832333b126de1c6 (patch) | |
tree | 7f569888fab84e6e29b58c4c8d2cf77d9cf680b3 /libraries/libreadline-java/libreadline-java.SlackBuild | |
parent | e7a9adca1180c2bf20a17ce0e8c492909ce8fb1c (diff) |
libraries/libreadline-java: Updated for version 0.8.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libreadline-java/libreadline-java.SlackBuild')
-rw-r--r-- | libraries/libreadline-java/libreadline-java.SlackBuild | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/libraries/libreadline-java/libreadline-java.SlackBuild b/libraries/libreadline-java/libreadline-java.SlackBuild index 1f15cf6b83b92..fad2ded75fcb1 100644 --- a/libraries/libreadline-java/libreadline-java.SlackBuild +++ b/libraries/libreadline-java/libreadline-java.SlackBuild @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libreadline-java -VERSION=${VERSION:-0.8.0} -BUILD=${BUILD:-3} +VERSION=${VERSION:-0.8.2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -63,25 +63,6 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz cd $PRGNAM-$VERSION -# allow building with clang -patch -p1 < $CWD/patches/8cf1b175458acd54cf2f4c2eee166dd8cdfe5e80.patch -sed -i 's/^CC/#CC/' src/native/Makefile - -# fix collision with getline(3) -patch -p1 < $CWD/patches/8f1e8f8357c48088f72952860ede68f54dc61d8e.patch - -# fix building against newer libedit -patch -p1 < $CWD/patches/c87604b44853663b6d101088db8f894aa4cfb6e3.patch - -# make build respect our CFLAGS -sed -i -e "s/\(-fPIC -DPOSIX\)/\1 $SLKCFLAGS/" src/native/Makefile - -# allow running on anything >= jdk1.6 -sed -i -e "s/JC_FLAGS =/JC_FLAGS = -target 1.6 -source 1.6/" Makefile - -# fix building docs with JDK8 -sed -i -e 's/\(-version -author org.gnu.readline\)/\1 -Xdoclint:none/' Makefile - chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -96,6 +77,8 @@ if pkg-config --exists libedit ; then fi for target in jar build-native apidoc ; do + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ make -j1 "$target" T_LIBS="$T_LIBS" done @@ -108,7 +91,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -r api $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING.LIB ChangeLog NEWS README README.1st TODO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING.LIB ChangeLog NEWS README README.1st TODO.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |