Name gettext-doc
Description Documentation for GNU gettext
Version 0.23.1-2
Package Base gettext
Homepage https://www.gnu.org/software/gettext/
Maintainers ['Santiago Vila <sanvila@debian.org>']
Contributors []
Distro-repo https://salsa.debian.org/sanvila/gettext
Sources ['https://sources.debian.org/data/main/g/gettext/0.23.1-2/debian/watch', 'https://sources.debian.org/src/gettext/0.23.1-2/debian/patches/fix-test-non-english-locale.patch', 'https://sources.debian.org/src/gettext/0.23.1-2/debian/patches/parse-recursive-jsx-expressions-correctly.patch', 'https://sources.debian.org/src/gettext/0.23.1-2/debian/patches/series']
Dependencies []
Optional-Dependencies []
Build-Dependencies ['bison', 'debhelper-compat', 'default-jdk [!hppa !hurd-any !kfreebsd-any] <!nojava>', 'dh-exec', 'file', 'gawk | mawk', 'groff', 'libacl1-dev', 'libattr1-dev', 'libncurses-dev', 'libunistring-dev', 'libxml2-dev', 'maven-repo-helper [!hppa !hurd-any !kfreebsd-any] <!nojava>', 'xz-utils']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 459a9b00956f485743dc7cafcc678d775211e7349b785beb4403cc9c8324ce41
#!/usr/bin/make -f

%:
	dh $@ $(WITH_MAVEN)

override_dh_autoreconf:

#
# Parameters to configure.
#
CONFIGURE_OPTIONS = \
  --enable-threads \
  --disable-native-java \
  --disable-rpath \
  --without-emacs

ifneq (,$(filter maven-repo-helper,$(shell dh -l)))
  ifeq (,$(filter nojava,$(DEB_BUILD_PROFILES)))
    WITH_MAVEN = --with maven-repo-helper
  endif
endif

# On emulated m68k and sh4 targets, OpenMP can cause lockups,
# we therefore disable it for the time being.
ifneq (,$(findstring $(DEB_HOST_ARCH), m68k sh4))
  CONFIGURE_OPTIONS += --disable-openmp
else
  CONFIGURE_OPTIONS += --enable-openmp
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_OPTIONS)


#
# Parameters to make.
#
MAKE_OPTIONS =

# Disable use of Java in gettext-tools/urlget.
# See <https://bugs.debian.org/292988>.
MAKE_OPTIONS += USEJAVA=0

override_dh_auto_build:
	dh_auto_build -- $(MAKE_OPTIONS)


#
# We package gettext-el using dh_elpa, but upstream doesn't provide
# ELPA package metadata so we have to give it some hints.
#
ELPA_NAME=po-mode
export ELPA_NAME
include /usr/share/dpkg/pkg-info.mk
export DEB_VERSION_UPSTREAM

# gettext-el has no test suite, but the package as a whole does have a
# test suite, run by the normal dh_auto_test, that should not be skipped.
export DH_ELPA_TEST_DISABLE=disable

override_dh_auto_test:
	dh_auto_test --max-parallel=1