diff --git a/net-libs/librsync/librsync-1.0.0pre.recipe b/net-libs/librsync/librsync-1.0.0pre.recipe new file mode 100644 index 000000000..f50168be7 --- /dev/null +++ b/net-libs/librsync/librsync-1.0.0pre.recipe @@ -0,0 +1,94 @@ +SUMMARY="Free implementation of rsync remote-delta algorithm" +DESCRIPTION="librsync is a free software library that implements the \ +rsync remote-delta algorithm. This algorithm allows efficient remote \ +updates of a file, without requiring the old and new versions to \ +both be presentat the sending end. The library uses a \"streaming\" \ +design similar to that of zlib with the aim of allowing it to be embedded \ +into many different applications." + +HOMEPAGE="http://librsync.sourcefrog.net" +GIT_HASH='ad8d065bfd' +SRC_URI="git://github.com/librsync/librsync.git#$GIT_HASH" +#CHECKSUM_SHA256="" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" +LICENSE="GNU LGPL v2.1" +COPYRIGHT="1995 Patrick Powell +1996-1999 Andrew Tridgell +1996 Paul Mackerras +1999-2014 Martin Pool +2002-2003 Donovan Baarda +" + +REQUIRES=" + haiku$secondaryArchSuffix + lib:libbz2$secondaryArchSuffix + lib:libpopt$secondaryArchSuffix + lib:libz$secondaryArchSuffix +" + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libbz2$secondaryArchSuffix + devel:libpopt$secondaryArchSuffix + devel:libz$secondaryArchSuffix +" + +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:autoreconf + cmd:gcc$secondaryArchSuffix + cmd:gawk + cmd:grep + cmd:libtoolize + cmd:make + cmd:perl + cmd:sed + cmd:which +" + +PROVIDES=" + $portName = $portVersion + cmd:rdiff$secondaryArchSuffix = $portVersion + lib:librsync$secondaryArchSuffix = 1.0.2 compat >= 1 +" + +PATCH() +{ + sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac +} + +BUILD() +{ + mkdir -p m4 + autoreconf -fi + runConfigure ./configure \ + --enable-shared + make $jobArgs +} + +INSTALL() +{ + make install + prepareInstalledDevelLibs librsync + packageEntries devel \ + $developDir \ + $manDir/man3 +} + +TEST() +{ + make check +} + +PROVIDES_devel=" + ${portName}_devel = $portVersion + devel:librsync$secondaryArchSuffix = 1.0.2 compat >= 1 + " +REQUIRES_devel=" + librsync$secondaryArchSuffix == $portVersion base + " +