Updated sharutils to 4.10, note that it only builds with gcc4 so far.

This commit is contained in:
Scott McCreary
2010-10-07 22:44:01 +00:00
parent 56a31ee7a4
commit e559e4fb78
3 changed files with 23 additions and 62 deletions

View File

@@ -0,0 +1,23 @@
DESCRIPTION="sharutils"
HOMEPAGE="http://www.gnu.org/software/sharutils/"
SRC_URI="ftp://ftp.gnu.org/gnu/sharutils/sharutils-4.10.tar.gz"
CHECKSUM_MD5="c8bbfa89810ce9f5399b38392549207c"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
BUILD {
cd sharutils-4.10
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--mandir=$MANDIR
make
}
INSTALL {
cd sharutils-4.10
make install
}
LICENSE="GNU GPL v3"
COPYRIGHT="1990-2010 Free Software Foundation, Inc."

View File

@@ -1,20 +0,0 @@
diff -Naur sharutils-4.6.3-original/configure.ac sharutils-4.6.3/configure.ac
--- sharutils-4.6.3-original/configure.ac 2009-04-07 00:40:07.000000000 -0400
+++ sharutils-4.6.3/configure.ac 2009-04-07 00:41:01.000000000 -0400
@@ -9,6 +9,7 @@
AC_INIT([sharutils], sharutils_version, sharutils_eaddr)
AC_CONFIG_SRCDIR([src/shar.c])
AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.9 gnits dist-bzip2])
AC_SUBST(DIST_ALPHA)
@@ -20,7 +21,7 @@
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
-AC_PROG_RANLIB
+LT_INIT
dnl FIXME: Check that it is GNU diff indeed.
# Carefully avoid gdiff for X as found on SGI systems.

View File

@@ -1,42 +0,0 @@
#!/bin/sh
HOMEPAGE="http://www.gnu.org/software/sharutils/"
PACKAGE="app-arch/sharutils/"
VERSION="4.6.3"
URL="ftp://ftp.gnu.org/gnu/sharutils/REL-4.6.3/"
FILE="sharutils-4.6.3.tar.bz2"
PATCH_URL="http://ports.haiku-files.org/svn/haikuports/trunk/"
PATCH_FILE="sharutils-4.6.3-downstream.patch"
# ------- This should not be edited -------
PFX=/boot/common/
HAIKUPORTS="http://ports.haiku-files.org/wiki/"
CWD=`pwd`/
if [ ! -d ${PACKAGE}${VERSION} ] ; then
mkdir -p ${PACKAGE}${VERSION}
fi
if [ ! -e ${FILE} ] ; then
wget ${URL}${FILE}
fi
cd ${PACKAGE}${VERSION}
if [ ${FILE:(-7)} = "tar.bz2" ] ; then
tar -jxvf ${CWD}${FILE}
elif [ ${FILE:(-7)} = ".tar.gz" ] ; then
tar xvf ${CWD}${FILE}
fi
# ------- Begin Instructions -------
cd sharutils-4.6.3
wget ${PATCH_URL}${PACKAGE}${PATCH_FILE}
patch -p1 -i ${PATCH_FILE}
libtoolize --force --install
configure --prefix=${PFX}
aclocal --force -I m4
automake --force-missing --gnits
autoconf --force
make && make install DEST_HOME=${PFX} && echo " Installation complete." || echo " Installation FAILED !"
echo " For more information, see:"
echo " ${HAIKUPORTS}${PACKAGE}"
echo " ${HOMEPAGE}"
echo