From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1060572-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1240F138334 for <garchives@archives.gentoo.org>; Wed, 5 Dec 2018 02:27:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0C37E0B4C; Wed, 5 Dec 2018 02:27:33 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ACA15E0B4C for <gentoo-commits@lists.gentoo.org>; Wed, 5 Dec 2018 02:27:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3116D335CEB for <gentoo-commits@lists.gentoo.org>; Wed, 5 Dec 2018 02:27:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 96D5F44C for <gentoo-commits@lists.gentoo.org>; Wed, 5 Dec 2018 02:27:28 +0000 (UTC) From: "Patrick McLean" <chutzpah@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" <chutzpah@gentoo.org> Message-ID: <1543976808.ed98a0926d3e99ce9e76fb16311b491797cd1042.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/jq/, app-misc/jq/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/jq/Manifest app-misc/jq/files/jq-1.6-never-bundle-oniguruma.patch app-misc/jq/files/jq-1.6-runpath.patch app-misc/jq/jq-1.6.ebuild X-VCS-Directories: app-misc/jq/ app-misc/jq/files/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: ed98a0926d3e99ce9e76fb16311b491797cd1042 X-VCS-Branch: master Date: Wed, 5 Dec 2018 02:27:28 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 04ec2a12-b24a-4604-8781-dafe590fb161 X-Archives-Hash: f9d02e16dcb1a586ed703aa5425a3933 commit: ed98a0926d3e99ce9e76fb16311b491797cd1042 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> AuthorDate: Wed Dec 5 02:26:26 2018 +0000 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> CommitDate: Wed Dec 5 02:26:48 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed98a092 app-misc/jq: Version bump to 1.6 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> app-misc/jq/Manifest | 1 + .../jq/files/jq-1.6-never-bundle-oniguruma.patch | 80 ++++++++++++++++++++++ app-misc/jq/files/jq-1.6-runpath.patch | 17 +++++ app-misc/jq/jq-1.6.ebuild | 60 ++++++++++++++++ 4 files changed, 158 insertions(+) diff --git a/app-misc/jq/Manifest b/app-misc/jq/Manifest index ddcdd6da4a9..d57b21c2677 100644 --- a/app-misc/jq/Manifest +++ b/app-misc/jq/Manifest @@ -1 +1,2 @@ DIST jq-1.5.tar.gz 739309 BLAKE2B 9d36db80fa9365d9967c9e1691e723d5237e7db2ddef43e06391bb97ba3a163f07c79906b9cf94d4b53f20598dc8ccacaff9e54ff3c32387fef1b3d484c13e73 SHA512 4a0bb069ae875f47731d7d84ae6b82240703dc7a694cfb0aee4c7e9639defe7ba9af575d17dc32bda4426b80c186cc8dcd4505f3a6bcbe16b39e9b13097da238 +DIST jq-1.6.tar.gz 1750584 BLAKE2B c9be1314e9d027247de63492ee362e996ef85faf45a47ee421cad95ebde9188bff8d3fc7db64e717ab922e1052f3b1c1500f5589fc5b2199ab66effb000e442d SHA512 5da71f53c325257f1f546a2520fe47828b495c953270df25ea0e37741463fdda72f0ba4d5b05b25114ec30f27a559344c2b024bacabf610759f4e3e9efadb480 diff --git a/app-misc/jq/files/jq-1.6-never-bundle-oniguruma.patch b/app-misc/jq/files/jq-1.6-never-bundle-oniguruma.patch new file mode 100644 index 00000000000..0b0e9260050 --- /dev/null +++ b/app-misc/jq/files/jq-1.6-never-bundle-oniguruma.patch @@ -0,0 +1,80 @@ +diff --git a/Makefile.am b/Makefile.am +index 6344b4e..5f0c74d 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -48,7 +48,7 @@ AM_YFLAGS = --warnings=all -d + lib_LTLIBRARIES = libjq.la + libjq_la_SOURCES = ${LIBJQ_SRC} + libjq_la_LIBADD = -lm +-libjq_la_LDFLAGS = $(onig_LDFLAGS) -export-symbols-regex '^j[qv]_' -version-info 1:4:0 ++libjq_la_LDFLAGS = -export-symbols-regex '^j[qv]_' -version-info 1:4:0 + + if WIN32 + libjq_la_LIBADD += -lshlwapi +@@ -137,15 +137,6 @@ jq.1: $(srcdir)/jq.1.prebuilt + endif + + +-### Build oniguruma +- +-if BUILD_ONIGURUMA +-libjq_la_LIBADD += modules/oniguruma/src/.libs/libonig.la +-SUBDIRS = modules/oniguruma +-endif +- +-AM_CFLAGS += $(onig_CFLAGS) +- + ### Packaging + + docs/site.yml: configure.ac +diff --git a/configure.ac b/configure.ac +index 280694c..0c5d86f 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -236,45 +236,20 @@ AC_ARG_WITH([oniguruma], + [try this for a non-standard install prefix of the oniguruma library])], , + [with_oniguruma=yes]) + +-onig_CFLAGS= +-onig_LDFLAGS= +-build_oniguruma=no + AS_IF([test "x$with_oniguruma" != xno], [ + save_CFLAGS="$CFLAGS" + save_LDFLAGS="$LDFLAGS" +- AS_IF([test "x$with_oniguruma" != xyes], [ +- AS_IF([test "x$with_oniguruma" = xbuiltin], [ +- build_oniguruma=yes +- ], [ +- onig_CFLAGS="-I${with_oniguruma}/include" +- onig_LDFLAGS="-L${with_oniguruma}/lib" +- ]) +- ]) + AS_IF([test "x$build_oniguruma" = xno], [ + # check for ONIGURUMA library, either in /usr or where requested +- CFLAGS="$CFLAGS $onig_CFLAGS" +- LDFLAGS="$LDFLAGS $onig_LDFLAGS" + AC_CHECK_HEADER("oniguruma.h", + AC_CHECK_LIB([onig],[onig_version])) + # handle check results + AS_IF([test "x$ac_cv_lib_onig_onig_version" != "xyes"], [ +- build_oniguruma=yes +- AC_MSG_NOTICE([Oniguruma was not found. Will use the packaged oniguruma.]) ++ AC_MSG_ERROR(oniguruma.h not found) + ]) + ]) +- AS_IF([test "x$build_oniguruma" = xyes -a -f "${srcdir}/modules/oniguruma/configure.ac" ], [ +- onig_CFLAGS="-I${srcdir}/modules/oniguruma/src" +- onig_LDFLAGS="-L${srcdir}/modules/oniguruma/src -Wl,-rpath,${libdir}" +- AC_CONFIG_SUBDIRS([modules/oniguruma]) +- AC_DEFINE([HAVE_LIBONIG],1,[Define to 1 if the system includes libonig]) +- ]) +- CFLAGS="$save_CFLAGS" +- LDFLAGS="$save_LDFLAGS" + ]) +-AC_SUBST(onig_CFLAGS) +-AC_SUBST(onig_LDFLAGS) + +-AM_CONDITIONAL([BUILD_ONIGURUMA], [test "x$build_oniguruma" = xyes]) + AC_SUBST([BUNDLER], ["$bundle_cmd"]) + + AC_CONFIG_MACRO_DIR([config/m4]) diff --git a/app-misc/jq/files/jq-1.6-runpath.patch b/app-misc/jq/files/jq-1.6-runpath.patch new file mode 100644 index 00000000000..40a2ed02f3d --- /dev/null +++ b/app-misc/jq/files/jq-1.6-runpath.patch @@ -0,0 +1,17 @@ +diff --git a/configure.ac b/configure.ac +index 280694c..7227c9d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -280,4 +280,11 @@ AC_SUBST([BUNDLER], ["$bundle_cmd"]) + AC_CONFIG_MACRO_DIR([config/m4]) + AC_CONFIG_FILES([Makefile]) + AC_OUTPUT +- ++AC_ARG_ENABLE([rpathhack], ++ [AC_HELP_STRING([--enable-rpathhack], [patch libtool to remove RPATH])], ++ [ ++AC_MSG_RESULT([patching libtool to fix rpath]) ++sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool ++sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool ++ ], ++ []) diff --git a/app-misc/jq/jq-1.6.ebuild b/app-misc/jq/jq-1.6.ebuild new file mode 100644 index 00000000000..43d94479124 --- /dev/null +++ b/app-misc/jq/jq-1.6.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="A lightweight and flexible command-line JSON processor" +HOMEPAGE="https://stedolan.github.com/jq/" +SRC_URI="https://github.com/stedolan/jq/releases/download/${P}/${P}.tar.gz" + +LICENSE="MIT CC-BY-3.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" +IUSE="oniguruma static-libs" + +DEPEND=" + >=sys-devel/bison-3.0 + sys-devel/flex + oniguruma? ( dev-libs/oniguruma:=[static-libs?] ) +" +RDEPEND=" + !static-libs? ( + oniguruma? ( dev-libs/oniguruma[static-libs?] ) + ) +" + +src_prepare() { + local PATCHES=( + "${FILESDIR}"/jq-1.6-never-bundle-oniguruma.patch + "${FILESDIR}"/jq-1.6-runpath.patch + ) + use oniguruma || { sed -i 's:tests/onigtest::' Makefile.am || die; } + sed -i '/^dist_doc_DATA/d' Makefile.am || die + sed -i -r "s:(m4_define\(\[jq_version\],) .+\):\1 \[${PV}\]):" \ + configure.ac || die + + default + eautoreconf +} + +src_configure() { + local econfargs=( + # don't try to rebuild docs + --disable-docs + --disable-valgrind + --disable-maintainer-mode + --enable-rpathhack + $(use_enable static-libs static) + $(use_with oniguruma) + ) + econf "${econfargs[@]}" +} + +src_install() { + local DOCS=( AUTHORS README ) + default + + use static-libs || { find "${D}" -name '*.la' -delete || die; } +}