diff options
Diffstat (limited to 'network/thrift')
-rw-r--r-- | network/thrift/README | 24 | ||||
-rw-r--r-- | network/thrift/thrift.SlackBuild | 32 | ||||
-rw-r--r-- | network/thrift/thrift.info | 6 |
3 files changed, 41 insertions, 21 deletions
diff --git a/network/thrift/README b/network/thrift/README index eb5db97653..be9b57369b 100644 --- a/network/thrift/README +++ b/network/thrift/README @@ -1,11 +1,13 @@ -Apache Thrift is a software framework for scalable cross-language services -development. It combines a software stack with a code generation engine to -build services that work efficiently and seamlessly among C++, Java, Python, -PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Smalltalk, and OCaml. +Apache Thrift is a software framework for scalable cross-language +services development. It combines a software stack with a code +generation engine to build services that work efficiently and +seamlessly among C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, +C#, Cocoa, Smalltalk, and OCaml. -Other languages are not included because either they are not included in a -standard installation of Slackware, or because the standard way of installing -Thrift for that language is not via system packages; for example: +Other languages are not included because either they are not included +in a standard installation of Slackware, or because the standard way +of installing Thrift for that language is not via system packages; +for example: - Perl: install from CPAN - PHP: bundle the Thrift source in your application - Ruby: install with 'gem' @@ -14,5 +16,9 @@ You will still need the Thrift compiler from this package. There are usage examples for more langauges at http://wiki.apache.org/thrift/ThriftUsage -libevent is an optional dependency; if it is installed, a C++ non-blocking -server library will be built. +libevent is an optional dependency; if it is installed, a C++ +non-blocking server library will be built. + +Warning: This SlackBuild requires network access when it runs, meaning +it downloads files from the Internet with root access. You should +decide for yourself whether or not you think this is a good idea. diff --git a/network/thrift/thrift.SlackBuild b/network/thrift/thrift.SlackBuild index f76fb6b52c..7f9289fd58 100644 --- a/network/thrift/thrift.SlackBuild +++ b/network/thrift/thrift.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Apache Thrift @@ -16,26 +16,36 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=thrift -VERSION=${VERSION:-0.9.2} -BUILD=${BUILD:-1} +VERSION=${VERSION:-0.14.2} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -74,22 +84,26 @@ CXXFLAGS="$SLKCFLAGS" \ --disable-static \ --with-c-glib \ --without-ruby \ + --without-rs \ --without-php \ --without-php_extension \ --disable-tests \ --build=$ARCH-slackware-linux +export GO111MODULE="off" make make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - CHANGES LICENSE NOTICE README.md \ + CHANGES.md CONTRIBUTING.md LANGUAGES.md LICENSE NOTICE README.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -f $PKG/usr/lib*/*.la + 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.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/network/thrift/thrift.info b/network/thrift/thrift.info index ec2179291c..be6bb9c634 100644 --- a/network/thrift/thrift.info +++ b/network/thrift/thrift.info @@ -1,8 +1,8 @@ PRGNAM="thrift" -VERSION="0.9.2" +VERSION="0.14.2" HOMEPAGE="http://thrift.apache.org" -DOWNLOAD="http://archive.apache.org/dist/thrift/0.9.2/thrift-0.9.2.tar.gz" -MD5SUM="89f63cc4d0100912f4a1f8a9dee63678" +DOWNLOAD="http://archive.apache.org/dist/thrift/0.14.2/thrift-0.14.2.tar.gz" +MD5SUM="284a48df355aa3910687ee9b894d3ae8" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |