summaryrefslogtreecommitdiffstats
path: root/disk
diff options
context:
space:
mode:
authorTreeve Jelbert2019-10-14 11:57:59 +0200
committerTreeve Jelbert2019-10-14 11:57:59 +0200
commitfc882a712ce9f12a8ee3b0635d6f45164c6b21a1 (patch)
tree5e3ff4f1366c946826dbc14b17971c7a804c35da /disk
parentd041641d5d910e1e9029707ada5c5d9159f9181d (diff)
libbytesize - enable build without gettext
Diffstat (limited to 'disk')
-rwxr-xr-xdisk/libbytesize/DEPENDS3
-rw-r--r--disk/libbytesize/HISTORY2
-rwxr-xr-xdisk/libbytesize/PRE_BUILD7
3 files changed, 10 insertions, 2 deletions
diff --git a/disk/libbytesize/DEPENDS b/disk/libbytesize/DEPENDS
index 1bd868c6ce..d28e51c8a4 100755
--- a/disk/libbytesize/DEPENDS
+++ b/disk/libbytesize/DEPENDS
@@ -2,5 +2,6 @@ depends pkgconfig &&
depends gmp &&
depends mpfr &&
depends pcre2 &&
+optional_depends gettext '' '' 'NLS support' &&
optional_depends gtk-doc '--with-gtk-doc' '--without-gtk-doc' 'Build Devhelp files?' &&
-optional_depends python3 '--with-python3' '--without-python3' 'Python3 support'
+optional_depends python3 '--with-python3' '--without-python3 --without-tools' 'Python3 support'
diff --git a/disk/libbytesize/HISTORY b/disk/libbytesize/HISTORY
index 517c1e15eb..085e82bfaf 100644
--- a/disk/libbytesize/HISTORY
+++ b/disk/libbytesize/HISTORY
@@ -1,6 +1,8 @@
2019-10-14 Treeve Jelbert <treeve@sourcemage.org>
* DETAILS: version 2.1
* DEPENDS: +pcre, -python
+ optional gettext
+ * PRE_BUILD: added, enable build without gettext
2018-08-06 Treeve Jelbert <treeve@sourcemage.org>
* DETAILS: version 1.4
diff --git a/disk/libbytesize/PRE_BUILD b/disk/libbytesize/PRE_BUILD
index 0d3eecfdd5..9dd501b31b 100755
--- a/disk/libbytesize/PRE_BUILD
+++ b/disk/libbytesize/PRE_BUILD
@@ -1,5 +1,10 @@
default_pre_build &&
cd $SOURCE_DIRECTORY &&
-
+# enable build without gettext
+if ! is_depends_enabled $SPELL gettext;then
+ rm -r po
+ sed -i '/gettext/,/NLS/D;/po\/Makefile/D' configure.ac &&
+ sed -i '/SUBDIRS/s/po src dist tests/src/' Makefile.am
+fi &&
libtoolize -f -i &&
autoreconf -i -s