mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
pystring, new recipe (#6059)
This commit is contained in:
80
dev-cpp/pystring/pystring-1.1.3~git.recipe
Normal file
80
dev-cpp/pystring/pystring-1.1.3~git.recipe
Normal file
@@ -0,0 +1,80 @@
|
||||
SUMMARY="C++ functions matching the interface and behavior of python string methods"
|
||||
DESCRIPTION="Pystring is a collection of C++ functions which match the \
|
||||
interface and behavior of python's string class methods using std::string.
|
||||
Implemented in C++, it does not require or make use of a python interpreter. \
|
||||
It provides convenience and familiarity for common string operations not \
|
||||
included in the standard C++ library. It's also useful in environments where \
|
||||
both C++ and python are used.
|
||||
|
||||
Overlapping functionality (such as index and slice/substr) of std::string is \
|
||||
included to match python interfaces.
|
||||
|
||||
Note: Despite the infrequent updates, this repo is not dead/abandoned - just \
|
||||
stable! We use it every day at Imageworks."
|
||||
HOMEPAGE="http://opensource.imageworks.com/"
|
||||
COPYRIGHT="2008-2010 Sony Pictures Imageworks Inc"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
srcGitRev="281419de2f91f9e0f2df6acddfea3b06a43436be"
|
||||
SOURCE_URI="https://github.com/imageworks/pystring/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="46161e75f85a3e8867233aebb6f4399f405c565db76dc07731a7ef662459609d"
|
||||
SOURCE_FILENAME="pystring-$portVersion-$srcGitRev.tar.gz"
|
||||
SOURCE_DIR="pystring-$srcGitRev"
|
||||
PATCHES="pystring-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
||||
|
||||
PROVIDES="
|
||||
pystring$secondaryArchSuffix = $portVersion
|
||||
lib:libpystring$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
pystring${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libpystring$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
pystring$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtool$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -B build -S . \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libpystring
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make -C build test
|
||||
}
|
||||
Reference in New Issue
Block a user