mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-11 06:10:06 +02:00
dev-python/cryptography: simplify COPYRIGHT, define myLicensesDir.
This commit is contained in:
@@ -5,10 +5,10 @@ It includes both high level recipes and low level interfaces to common \
|
||||
cryptographic algorithms such as symmetric ciphers, message digests, and key \
|
||||
derivation functions."
|
||||
HOMEPAGE="https://cryptography.io/"
|
||||
COPYRIGHT="2013-2018 Alex Gaynor, Paul Kehrer and others"
|
||||
COPYRIGHT="2013-2018 The cryptography developers"
|
||||
LICENSE="Apache v2
|
||||
BSD (3-clause)"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/pyca/cryptography/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ff45a7f377d7f0fc79bdd4254b39f17c317ef0e6dc996da6795d5d3fd1718269"
|
||||
SOURCE_FILENAME="cryptography-$portVersion.tar.gz"
|
||||
@@ -113,6 +113,8 @@ BUILD()
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
myLicensesDir=$dataDir/licenses/packages/c/cryptography
|
||||
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
@@ -127,21 +129,21 @@ INSTALL()
|
||||
--optimize=1 \
|
||||
--root=/ --prefix="$prefix"
|
||||
|
||||
install -m 755 -d "$dataDir"/licenses/packages/cryptography
|
||||
install -m 644 -t "$dataDir"/licenses/packages/cryptography LICENSE*
|
||||
rm "$dataDir"/licenses/packages/cryptography/LICENSE.APACHE
|
||||
install -m 755 -d "$myLicensesDir"
|
||||
install -m 644 -t "$myLicensesDir" LICENSE*
|
||||
rm "$myLicensesDir"/LICENSE.APACHE
|
||||
ln -s "`finddir B_SYSTEM_DATA_DIRECTORY`/licenses/Apache v2" \
|
||||
"$dataDir"/licenses/packages/cryptography/LICENSE.APACHE
|
||||
"$myLicensesDir"/LICENSE.APACHE
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
"$dataDir" \
|
||||
"$prefix"/lib/$python
|
||||
done
|
||||
|
||||
install -m 755 -d "$dataDir"/licenses/packages/cryptography "$docDir"
|
||||
install -m 644 -t "$dataDir"/licenses/packages/cryptography LICENSE*
|
||||
rm "$dataDir"/licenses/packages/cryptography/LICENSE.APACHE
|
||||
install -m 755 -d "$myLicensesDir" "$docDir"
|
||||
install -m 644 -t "$myLicensesDir" LICENSE*
|
||||
rm "$myLicensesDir"/LICENSE.APACHE
|
||||
ln -s "`finddir B_SYSTEM_DATA_DIRECTORY`/licenses/Apache v2" \
|
||||
"$dataDir"/licenses/packages/cryptography/LICENSE.APACHE
|
||||
"$myLicensesDir"/LICENSE.APACHE
|
||||
install -m 644 -t "$docDir" README.rst
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user