summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-12 18:28:37 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-12 18:28:37 (EST)
commit1e97bdef471197af3454cefe612624b90624326f (patch)
tree90db9036a3db615476669042c768ac886cda5efb
parentffee60125950bedb5051cf51a211e309e01f45f6 (diff)
Add a binutils-locales binary package.
-rw-r--r--binutils-locales.pkg/control6
-rwxr-xr-xbuild22
-rw-r--r--control2
3 files changed, 22 insertions, 8 deletions
diff --git a/binutils-locales.pkg/control b/binutils-locales.pkg/control
new file mode 100644
index 0000000..ccc5a0d
--- /dev/null
+++ b/binutils-locales.pkg/control
@@ -0,0 +1,6 @@
+Architecture: all
+Platform: all
+Depends: binutils-common (= ${Binary-Version})
+Description: GNU binary utilities - locales
+ This package provides native language support for the GNU assembler, linker,
+ and various other utilities for manipulating binary files.
diff --git a/build b/build
index 50c43fb..7c8e44c 100755
--- a/build
+++ b/build
@@ -17,7 +17,6 @@ configure:
# BFD and opcodes libraries.
# * Don't enable multilib (multiarch is better).
# * Enable plugins.
- # * Don't expect to find Gettext.
for target in $$(cat ../targets); do \
if [ '$(OPK_HOST_ARCH)' = "$${target}" ]; then \
LIB_PATH="=/usr/local/lib/$${target}=:/usr/local/lib"; \
@@ -33,7 +32,7 @@ configure:
--with-sysroot="$${OPK_SYSROOT:-/}" \
--program-transform-name="s&^&$${target}-&" \
--enable-shared --disable-multilib \
- --enable-plugins --disable-nls \
+ --enable-plugins \
--with-pkgversion='GNU Binutils for ProteanOS' || \
exit 1; \
done
@@ -121,19 +120,28 @@ install: build
>"$${ld_so_conf}"; \
done
# Move documentation into binutils-doc data directory.
- mkdir -p 'binutils-doc.data/usr'
+ # Move locale files into binutils-locales data directory.
+ mkdir -p 'binutils-doc.data/usr/share'
+ mkdir -p 'binutils-locales.data/usr/share'
for target in $$(cat ../targets); do \
- if [ ! -d 'binutils-doc.data/usr/share' ]; then \
- mv "binutils-$${target}.data/usr/share" 'binutils-doc.data/usr' || \
+ if [ ! -d 'binutils-doc.data/usr/share/man' ]; then \
+ mv "binutils-$${target}.data/usr/share/man" 'binutils-doc.data/usr/share' || \
exit 1; \
for file in 'binutils-doc.data/usr/share/man/man1/'*; do \
mv "$${file}" "$${file%/*}/$${file##*/$${target}-}" || \
exit 1; \
done; \
- else \
- rm -Rf "binutils-$${target}.data/usr/share" || \
+ fi; \
+ if [ ! -d 'binutils-doc.data/usr/share/info' ]; then \
+ mv "binutils-$${target}.data/usr/share/info" 'binutils-doc.data/usr/share' || \
exit 1; \
fi; \
+ if [ ! -d 'binutils-locales.data/usr/share/locale' ]; then \
+ mv "binutils-$${target}.data/usr/share/locale" 'binutils-locales.data/usr/share' || \
+ exit 1; \
+ fi; \
+ rm -Rf "binutils-$${target}.data/usr/share" || \
+ exit 1; \
done
# Move BFD development files into libbfd-dev-* data directory.
for target in $$(cat ../targets); do \
diff --git a/control b/control
index 6232f77..aeff4f4 100644
--- a/control
+++ b/control
@@ -1,3 +1,3 @@
Maintainer: "P. J. McDermott" <pjm@nac.net>
-Build-Depends: libz-dev, opkhelper-3.0
+Build-Depends: libz-dev, opkhelper-3.0, gettext
Homepage: https://www.gnu.org/software/binutils/