diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..00e1cf6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +.build +.configure +.download +.extract +.patchsrc +.install +.installpkg +.package +*.pkg +*.tar.gz +src +staging +Prototype +pkginfo +pkg diff --git a/bin/makepkg b/bin/makepkg index 7a9dd76..1875bf1 100755 --- a/bin/makepkg +++ b/bin/makepkg @@ -3,8 +3,8 @@ BPROG=$0 ABI="32" -CFLAGS="-I/usr/local/include" -CXXFLAGS="-I/usr/local/include" +#CFLAGS="-I/usr/local/include" +#CXXFLAGS="-I/usr/local/include" SITE_GNU=ftp://ftp.mirrorservice.org/sites/ftp.gnu.org/gnu @@ -151,6 +151,16 @@ checkdepend() { fi fi } + +patchsrc() { + if [ -d "${HERE}/patches" ]; then + cd "${SRCDIR}" + for P in ${HERE}/patches/*.patch; do + patch -p1 < "$P" + done + cd "${HERE}" + fi +} checkdepend @@ -158,6 +168,7 @@ checkdepend runonce download runonce extract +runonce patchsrc runonce configure runonce build runonce install diff --git a/libs/gettext/patches/01-remove-tools.patch b/libs/gettext/patches/01-remove-tools.patch new file mode 100644 index 0000000..fcec0eb --- /dev/null +++ b/libs/gettext/patches/01-remove-tools.patch @@ -0,0 +1,76 @@ +--- gettext-0.26.orig/Makefile.am Fri May 2 01:45:49 2025 ++++ gettext-0.26/Makefile.am Sat Sep 20 21:33:03 2025 +@@ -19,7 +19,7 @@ + AUTOMAKE_OPTIONS = 1.5 gnu + ACLOCAL_AMFLAGS = -I m4 + +-SUBDIRS = gnulib-local gettext-runtime libtextstyle gettext-tools ++SUBDIRS = gnulib-local gettext-runtime libtextstyle + + changelog_etc = \ + gettext-runtime/ChangeLog.0 \ +@@ -31,23 +31,6 @@ + gettext-runtime/man/ChangeLog.0 \ + gettext-runtime/src/ChangeLog.0 \ + gettext-runtime/tests/ChangeLog.0 \ +- gettext-tools/ChangeLog.0 \ +- gettext-tools/doc/ChangeLog.0 \ +- gettext-tools/doc/ChangeLog.1 \ +- gettext-tools/examples/ChangeLog.0 \ +- gettext-tools/gnulib-tests/ChangeLog.0 \ +- gettext-tools/libgettextpo/ChangeLog.0 \ +- gettext-tools/libgrep/ChangeLog.0 \ +- gettext-tools/m4/ChangeLog.0 \ +- gettext-tools/man/ChangeLog.0 \ +- gettext-tools/man/ChangeLog.1 \ +- gettext-tools/misc/ChangeLog.0 \ +- gettext-tools/projects/ChangeLog.0 \ +- gettext-tools/src/ChangeLog.0 \ +- gettext-tools/src/ChangeLog.1 \ +- gettext-tools/styles/ChangeLog.0 \ +- gettext-tools/tests/ChangeLog.0 \ +- gettext-tools/tests/ChangeLog.1 \ + gnulib-local/ChangeLog.0 + + EXTRA_DIST = \ +@@ -62,30 +45,9 @@ + m4/libtool.m4 + + # Additional dependencies for configure, due to the use of autoconf --trace. +-$(srcdir)/configure: $(srcdir)/gettext-runtime/configure.ac $(srcdir)/gettext-tools/configure.ac ++$(srcdir)/configure: $(srcdir)/gettext-runtime/configure.ac + +-distcheck-hook: +-# Verify that some files are the same. +- cmp -s $(srcdir)/gettext-runtime/po/Makefile.in.in $(srcdir)/gettext-tools/po/Makefile.in.in +- cmp -s $(srcdir)/gettext-runtime/po/Rules-quot $(srcdir)/gettext-tools/po/Rules-quot +- cmp -s $(srcdir)/gettext-runtime/po/boldquot.sed $(srcdir)/gettext-tools/po/boldquot.sed +- cmp -s $(srcdir)/gettext-runtime/po/quot.sed $(srcdir)/gettext-tools/po/quot.sed +- cmp -s $(srcdir)/gettext-runtime/po/en@quot.header $(srcdir)/gettext-tools/po/en@quot.header +- cmp -s $(srcdir)/gettext-runtime/po/en@boldquot.header $(srcdir)/gettext-tools/po/en@boldquot.header +- cmp -s $(srcdir)/gettext-runtime/po/insert-header.sed $(srcdir)/gettext-tools/po/insert-header.sed +- cmp -s $(srcdir)/gettext-runtime/po/remove-potcdate.sed $(srcdir)/gettext-tools/po/remove-potcdate.sed +- cmp -s $(srcdir)/gettext-runtime/po/remove-potcdate.sed $(srcdir)/gettext-tools/examples/po/remove-potcdate.sed +- cmp -s $(srcdir)/gettext-runtime/m4/build-to-host.m4 $(srcdir)/gettext-tools/gnulib-m4/build-to-host.m4 +- cmp -s $(srcdir)/gettext-runtime/m4/gettext.m4 $(srcdir)/gettext-tools/gnulib-m4/gettext.m4 +- cmp -s $(srcdir)/gettext-runtime/man/help2man $(srcdir)/gettext-tools/man/help2man +- cmp -s $(srcdir)/gettext-runtime/man/x-to-1.in $(srcdir)/gettext-tools/man/x-to-1.in +- cmp -s $(srcdir)/libtextstyle/m4/libtextstyle.m4 $(srcdir)/gettext-tools/gnulib-m4/libtextstyle.m4 +- cmp -s $(srcdir)/gettext-tools/examples/hello-java-awt/m4/TestAWT.java $(srcdir)/gettext-tools/examples/hello-java-swing/m4/TestAWT.java +- cmp -s $(srcdir)/gettext-tools/examples/hello-java-awt/m4/TestAWT.class $(srcdir)/gettext-tools/examples/hello-java-swing/m4/TestAWT.class +-# Verify that all files have appropriate copyright headers. +- if test -d '$(distdir)'; then $(srcdir)/check-copyright-headers '$(distdir)'; fi + +- + # Windows support. + + EXTRA_DIST += INSTALL.windows windows/windres-options windows/gettext.rc +@@ -131,7 +93,7 @@ + test -e "$$log_fix" \ + && amend_git_log="--amend=$$log_fix" \ + || amend_git_log=; \ +- for d in . gettext-runtime/intl gettext-runtime/po gettext-tools/po; \ ++ for d in . gettext-runtime/intl gettext-runtime/po ; \ + do \ + test "$$d" = "." \ + && cldir="$(distdir)" \