7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
30 lines
968 B
Bash
30 lines
968 B
Bash
# Template file for 'gtk-sharp2'
|
|
pkgname=gtk-sharp2
|
|
version=2.12.45
|
|
revision=2
|
|
wrksrc="gtk-sharp-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="pkg-config automake libtool mono"
|
|
makedepends="mono-devel gtk+-devel libglade-devel"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
short_desc="Graphical User Interface Toolkit for mono and .Net (Gtk#)"
|
|
license="LGPL-2.1-only"
|
|
homepage="https://www.mono-project.com/docs/gui/gtksharp/"
|
|
distfiles="https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-${version}.tar.gz"
|
|
checksum=02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a
|
|
|
|
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
|
_have_mdoc="no"
|
|
elif [[ $XBPS_TARGET_MACHINE == ppc* ]]; then
|
|
_have_mdoc="no"
|
|
fi
|
|
|
|
pre_configure() {
|
|
# mdoc is not shipped on ppc64le and all BE because it needs roslyn
|
|
if [ "$_have_mdoc" = "no" ]; then
|
|
sed "s/enable_monodoc=yes/enable_monodoc=no/" -i configure.in
|
|
fi
|
|
|
|
autoreconf -i
|
|
}
|