diff --git a/plans/dbus/habitat/plan.sh b/plans/dbus/habitat/plan.sh new file mode 100644 index 0000000..632468a --- /dev/null +++ b/plans/dbus/habitat/plan.sh @@ -0,0 +1,20 @@ +pkg_name=dbus +pkg_origin=mozillareality +pkg_version="1.13.8" +pkg_maintainer="Mozilla Mixed Reality " +pkg_license=('GPLv2') +pkg_description="D-Bus is a message bus system, a simple way for applications to talk to one another." +pkg_upstream_url="https://www.freedesktop.org/wiki/Software/dbus/" +pkg_source="https://dbus.freedesktop.org/releases/dbus/${pkg_name}-${pkg_version}.tar.xz" +pkg_shasum="82a89f64e1b55e459725186467770995f33cac5eb8a050b5d8cbeb338078c4f6" +pkg_deps=(core/glibc) +pkg_build_deps=( + core/autoconf + core/automake + core/make + mozillareality/expat + mozillareality/gcc + core/pkg-config +) +pkg_lib_dirs=(lib) +pkg_bin_dirs=(bin) diff --git a/plans/glib/habitat/plan.sh b/plans/glib/habitat/plan.sh index b995c17..96455da 100644 --- a/plans/glib/habitat/plan.sh +++ b/plans/glib/habitat/plan.sh @@ -16,24 +16,25 @@ pkg_shasum="82ee94bf4c01459b6b00cb9db0545c2237921e3060c0b74cff13fbc020cfd999" pkg_deps=( mozillareality/coreutils mozillareality/elfutils - core/glibc + core/glibc/2.27 mozillareality/libffi mozillareality/libiconv mozillareality/pcre - core/python mozillareality/util-linux mozillareality/zlib ) pkg_build_deps=( - core/dbus + mozillareality/dbus + mozillareality/python core/diffutils core/file core/gcc core/gettext - core/libxslt + #core/libxslt core/make core/perl core/pkg-config + core/coreutils ) pkg_bin_dirs=(bin) pkg_lib_dirs=(lib) diff --git a/plans/janus-gateway/habitat/plan.sh b/plans/janus-gateway/habitat/plan.sh index 1d06e64..dfca709 100644 --- a/plans/janus-gateway/habitat/plan.sh +++ b/plans/janus-gateway/habitat/plan.sh @@ -30,7 +30,6 @@ pkg_build_deps=( pkg_deps=( mozillareality/gcc mozillareality/glib - core/openssl/1.0.2r/20190305210149 core/p11-kit/0.23.10/20190117183627 core/sqlite/3130000/20190115154252 mozillareality/util-linux/2.34 diff --git a/plans/python/habitat/plan.sh b/plans/python/habitat/plan.sh new file mode 100644 index 0000000..bb5ab83 --- /dev/null +++ b/plans/python/habitat/plan.sh @@ -0,0 +1,86 @@ +pkg_name=python +pkg_distname=Python +pkg_version=3.7.0 +pkg_origin=mozillareality +pkg_maintainer="Mozilla Mixed Reality " +pkg_license=('Python-2.0') +pkg_description="Python is a programming language that lets you work quickly \ + and integrate systems more effectively." +pkg_upstream_url="https://www.python.org" +pkg_dirname="${pkg_distname}-${pkg_version}" +pkg_source="https://www.python.org/ftp/python/${pkg_version}/${pkg_dirname}.tgz" +pkg_shasum="85bb9feb6863e04fb1700b018d9d42d1caac178559ffa453d7e6a436e259fd0d" + +pkg_bin_dirs=(bin) +pkg_lib_dirs=(lib) +pkg_include_dirs=(include) +pkg_interpreters=(bin/python bin/python3 bin/python3.7) + +pkg_deps=( + core/bzip2 + core/expat + core/gcc-libs + core/gdbm + core/glibc + mozillareality/libffi + core/ncurses + mozillareality/openssl + core/readline + core/sqlite + mozillareality/zlib +) + +pkg_build_deps=( + core/coreutils + core/diffutils + core/gcc + core/linux-headers + core/make + core/util-linux +) + +do_prepare() { + sed -i.bak 's/#zlib/zlib/' Modules/Setup.dist + sed -i -re "/(SSL=|_ssl|-DUSE_SSL|-lssl).*/ s|^#||" Modules/Setup.dist +} + +do_build() { + export LDFLAGS="$LDFLAGS -lgcc_s" + + # TODO: We should build with `--enable-optimizations` + ./configure --prefix="$pkg_prefix" \ + --enable-loadable-sqlite-extensions \ + --enable-shared \ + --with-threads \ + --with-system-expat \ + --with-system-ffi \ + --with-ensurepip + + make +} + +do_check() { + make test +} + +do_install() { + do_default_install + + # link pythonx.x to python for pkg_interpreters + local minor=${pkg_version%.*} + local major=${minor%.*} + ln -rs "$pkg_prefix/bin/pip$minor" "$pkg_prefix/bin/pip" + ln -rs "$pkg_prefix/bin/pydoc$minor" "$pkg_prefix/bin/pydoc" + ln -rs "$pkg_prefix/bin/python$minor" "$pkg_prefix/bin/python" + ln -rs "$pkg_prefix/bin/python$minor-config" "$pkg_prefix/bin/python-config" + + # Remove idle as we are not building with Tk/x11 support so it is useless + rm -vf "$pkg_prefix/bin/idle$major" + rm -vf "$pkg_prefix/bin/idle$minor" + + platlib=$(python -c "import sysconfig;print(sysconfig.get_path('platlib'))") + cat < "$platlib/_manylinux.py" +# Disable binary manylinux1(CentOS 5) wheel support +manylinux1_compatible = False +EOF +}