0
0
Fork 0
haikuports/dev-util/gyp/gyp-20160504~git.recipe

55 lines
1.6 KiB
Bash

SUMMARY="Generate Your Projects (GYP) is a build automation tool"
DESCRIPTION="GYP is created by Google to generate native IDE project files \
(such as Visual Studio and Xcode) for building the Chromium web browser."
HOMEPAGE="https://gyp.gsrc.io/"
COPYRIGHT="2012 Google Inc."
LICENSE="BSD (2-clause)"
REVISION="5"
# Note that the hash which FreeBSD keeps for this version is not the same as
# the commit ID in the official gyp repository. This revision in the FreeBSD
# mirror is equivalent to commit 02b145a1 in the official repository, which
# cannot be used because the source tarballs it creates are different for each
# request.
freebsdRevision="e679e688ba6db12336b79650c27fcf8a5ed21e60"
SOURCE_URI="http://distcache.freebsd.org/local-distfiles/hrs/gyp-$freebsdRevision.tar.gz"
CHECKSUM_SHA256="51fadf46a7a108b0c8f273fb726b113609d7be5394d286716cbf472d1327d18c"
SOURCE_DIR="gyp-$freebsdRevision"
PATCHES="gyp-$portVersion.patchset"
ARCHITECTURES="all"
PROVIDES="
gyp = $portVersion
cmd:gyp = $portVersion
"
REQUIRES="
haiku
cmd:python
setuptools_python
"
BUILD_REQUIRES="
haiku_devel
setuptools_python
"
BUILD_PREREQUIRES="
cmd:python
"
BUILD()
{
$portPackageLinksDir/cmd~python/bin/python setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
pythonVersion=$(python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
$portPackageLinksDir/cmd~python/bin/python setup.py install \
--prefix=$prefix
}