Update infrastructure for xbps-src >= 100.

This commit is contained in:
Juan RP
2014-01-28 13:07:02 +01:00
parent 2a76aa6c11
commit 9b3f5617f4
6 changed files with 34 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
# -*- shell mode -*-
#
# Sets the minimal required xbps versions to build packages.
#
# =========================================================
# DO NOT MODIFY THIS FILE WITHOUT PRIOR WRITTEN PERMISSION!
# =========================================================
#
# xbps-src version.
export XBPS_SRC_REQ=98
# XBPS utils version.
export XBPS_UTILS_REQ=0.29
# XBPS utils API version.
export XBPS_UTILS_API_REQ=20131224

View File

@@ -0,0 +1,6 @@
# This file sets some envvars to allow building bootstrap packages
# when the chroot is not yet ready.
[ -z "$CHROOT_READY" ] && return 0
export PKG_CONFIG_PATH="${XBPS_MASTERDIR}/usr/lib/pkgconfig:${XBPS_MASTERDIR}/usr/share/pkgconfig"

View File

@@ -0,0 +1,6 @@
# This file sets up configure_args with commong settings for packages
# that don't set $build_style or set it to gnu-configure.
if [ "$build_style" = "gnu-configure" -o -z "$build_style" ]; then
export configure_args="--prefix=/usr --sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man --localstatedir=/var ${configure_args}"
fi

View File

@@ -0,0 +1,8 @@
# This file sets some envvars to allow cross compiling packages.
[ -z "$CROSS_BUILD" ] && return 0
export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE"
export PKG_CONFIG_PATH="$XBPS_CROSS_BASE/lib/pkgconfig:$XBPS_CROSS_BASE/usr/share/pkgconfig"
export PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/lib/pkgconfig"
export configure_args+=" --host=$XBPS_CROSS_TRIPLET --with-sysroot=$XBPS_CROSS_BASE --with-libtool-sysroot=$XBPS_CROSS_BASE "

View File

@@ -0,0 +1,20 @@
#
# Common variables that can be used by xbps-src.
#
# SITE used for ditfiles mirrors. For use in $distfiles.
SOURCEFORGE_SITE="http://downloads.sourceforge.net/sourceforge"
NONGNU_SITE="http://download.savannah.nongnu.org/releases"
UBUNTU_SITE="http://archive.ubuntu.com/ubuntu/pool"
XORG_SITE="http://xorg.freedesktop.org/releases/individual"
DEBIAN_SITE="http://ftp.debian.org/debian/pool"
GNOME_SITE="http://ftp.gnome.org/pub/GNOME/sources"
KERNEL_SITE="http://www.kernel.org/pub/linux"
#KERNEL_SITE="http://mirror.be.gbxs.net/pub/linux"
CPAN_SITE="http://cpan.perl.org/modules/by-module"
MOZILLA_SITE="http://ftp.mozilla.org/pub/mozilla.org"
GNU_SITE="http://mirrors.kernel.org/gnu"
FREEDESKTOP_SITE="http://freedesktop.org/software"
# Repetitive sub homepage's with no real project page
# ie. some gnome and xorg projects. For use in $homepage.
XORG_HOME="http://xorg.freedesktop.org/wiki/"

11
common/environment/README Normal file
View File

@@ -0,0 +1,11 @@
ENVIRONMENT SHELL SNIPPETS
==========================
This directory contains shell files (must not be executable nor contain a shebang)
that are read by xbps-src when building source packages. The shell files
are read in lexical order (as ordered by shell rules).
These files shall set environment variables for use in the xbps-src helpers
(libexec/xbps-src-*). Only files with the `.sh' extension are read, so this file
will be simply ignored.