Files
haikuports/dev-util/gyp/gyp-git.recipe
Markus Himmel cea5f2b4f7 GYP: Switch source to a mirror by the FreeBSD ports project
The official googlesource repository did not create the same tarball for each
request, so checksum verification failed.
2016-09-21 17:29:33 +02:00

54 lines
1.5 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="2"
# 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"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
gyp = $portVersion
cmd:gyp = $portVersion
"
REQUIRES="
haiku
cmd:python
python_setuptools
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
"
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
}