moving packages

This commit is contained in:
Ella-0 2021-07-31 12:55:09 +00:00
parent d2235a7fc5
commit 7488ce0293
48 changed files with 0 additions and 0 deletions

32
base/meson/build.sh Normal file
View file

@ -0,0 +1,32 @@
pkgver=0.58.1
pkgname=meson
deps=python
bad=""
ext="doc"
fetch() {
curl -L "https://github.com/mesonbuild/meson/releases/download/$pkgver/meson-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
cp ../not-darwin.patch .
cd $pkgname-$pkgver
patch -p1 < ../not-darwin.patch
}
build() {
cd $pkgname-$pkgver
python setup.py build
}
package() {
cd $pkgname-$pkgver
python setup.py install --prefix=/usr --root=$pkgdir
}
package_doc() {
echo $pkgdir
}
license() {
cd $pkgname-$pkgver
cat COPYING
}

View file

@ -0,0 +1,19 @@
--- a/mesonbuild/scripts/depfixer.py
+++ b/mesonbuild/scripts/depfixer.py
@@ -16,6 +16,7 @@
import sys, struct
import shutil, subprocess
import typing as T
+import platform
from ..mesonlib import OrderedSet
@@ -478,7 +479,7 @@
# https://github.com/mesonbuild/meson/pull/6612#discussion_r378581401
if INSTALL_NAME_TOOL is False:
INSTALL_NAME_TOOL = bool(shutil.which('install_name_tool'))
- if INSTALL_NAME_TOOL:
+ if INSTALL_NAME_TOOL and platform.system() == "Darwin":
if isinstance(new_rpath, bytes):
new_rpath = new_rpath.decode('utf8')
fix_darwin(fname, new_rpath, final_path, install_name_mappings)