summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-07-22 22:50:59 +0100
committerSam James <sam@gentoo.org>2021-07-22 22:52:05 +0100
commit5ec3cdc903f41dfb62fa3facb0732eb80833ab01 (patch)
tree0ba0fbbe84281b43a7b4c8e455ed2ce5d70f7a5a
parentsys-process/parallel: add 20210722 (diff)
downloadgentoo-5ec3cdc903f41dfb62fa3facb0732eb80833ab01.tar.gz
gentoo-5ec3cdc903f41dfb62fa3facb0732eb80833ab01.tar.bz2
gentoo-5ec3cdc903f41dfb62fa3facb0732eb80833ab01.zip
net-dns/libidn: ebuild modernisation
* Conditionalise mono-env_pkg_setup call * Use more standard structure/layout (ordering of variables, etc) * Reduced quoting * Drop trailing slash in dodoc argument * Drop COMMON_DEPEND Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--net-dns/libidn/libidn-1.38.ebuild38
1 files changed, 14 insertions, 24 deletions
diff --git a/net-dns/libidn/libidn-1.38.ebuild b/net-dns/libidn/libidn-1.38.ebuild
index 70da61fa213c..80d91922bab7 100644
--- a/net-dns/libidn/libidn-1.38.ebuild
+++ b/net-dns/libidn/libidn-1.38.ebuild
@@ -16,28 +16,20 @@ SLOT="0/12"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="doc emacs java mono nls"
-DOCS=( AUTHORS ChangeLog FAQ NEWS README THANKS )
-
-COMMON_DEPEND="
- mono? ( >=dev-lang/mono-0.95 )
- nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
-"
-DEPEND="
- ${COMMON_DEPEND}
+DEPEND="mono? ( >=dev-lang/mono-0.95 )
+ nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )"
+RDEPEND="${DEPEND}
+ java? ( >=virtual/jre-1.8:* )"
+BDEPEND="emacs? ( >=app-editors/emacs-23.1:* )
java? ( >=virtual/jdk-1.8:* )
-"
-RDEPEND="
- ${COMMON_DEPEND}
- java? ( >=virtual/jre-1.8:* )
-"
-BDEPEND="
- emacs? ( >=app-editors/emacs-23.1:* )
nls? ( >=sys-devel/gettext-0.17 )
- verify-sig? ( app-crypt/openpgp-keys-libidn )
-"
+ verify-sig? ( app-crypt/openpgp-keys-libidn )"
+
+DOCS=( AUTHORS ChangeLog FAQ NEWS README THANKS )
pkg_setup() {
- mono-env_pkg_setup
+ use mono && mono-env_pkg_setup
+
java-pkg-opt-2_pkg_setup
}
@@ -63,7 +55,7 @@ multilib_src_configure() {
--with-lispdir="${EPREFIX}${SITELISP}/${PN}"
--with-packager-bug-reports="https://bugs.gentoo.org"
--with-packager-version="r${PR}"
- --with-packager="Gentoo"
+ --with-packager="Gentoo Linux"
)
ECONF_SOURCE="${S}" econf "${args[@]}"
@@ -99,16 +91,14 @@ multilib_src_install_all() {
if use emacs; then
# *.el are installed by the build system
elisp-install ${PN} "${S}"/src/*.elc
- elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el"
+ elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el
else
- rm -r "${ED}/usr/share/emacs" || die
+ rm -r "${ED}"/usr/share/emacs || die
fi
einstalldocs
- if use doc ; then
- dodoc -r doc/reference/html/
- fi
+ use doc && dodoc -r doc/reference/html
find "${ED}" -name '*.la' -delete || die
}