From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 53161138335 for ; Tue, 30 Oct 2018 00:09:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B679E085E; Tue, 30 Oct 2018 00:09:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 D2F87E085E for ; Tue, 30 Oct 2018 00:09:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 06206335CB7 for ; Tue, 30 Oct 2018 00:09:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 04C41453 for ; Tue, 30 Oct 2018 00:09:00 +0000 (UTC) From: "Virgil Dupras" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Virgil Dupras" Message-ID: <1540857957.d1328f92d871f75668d7ae9e352b3129c574863d.vdupras@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/mujs/files/, dev-lang/mujs/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/mujs/Manifest dev-lang/mujs/files/mujs-1.0.5-flags.patch dev-lang/mujs/metadata.xml dev-lang/mujs/mujs-1.0.5.ebuild X-VCS-Directories: dev-lang/mujs/ dev-lang/mujs/files/ X-VCS-Committer: vdupras X-VCS-Committer-Name: Virgil Dupras X-VCS-Revision: d1328f92d871f75668d7ae9e352b3129c574863d X-VCS-Branch: master Date: Tue, 30 Oct 2018 00:09:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5df2a849-1c59-4942-a909-cdec059750f0 X-Archives-Hash: 6196cdcc9f466b9858c0ee6995dabc09 commit: d1328f92d871f75668d7ae9e352b3129c574863d Author: Conrad Kostecki kostecki com> AuthorDate: Sun Oct 28 19:15:32 2018 +0000 Commit: Virgil Dupras gentoo org> CommitDate: Tue Oct 30 00:05:57 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1328f92 dev-lang/mujs: bump to version 1.0.5 Closes: https://bugs.gentoo.org/show_bug.cgi?id=668492 Closes: https://bugs.gentoo.org/show_bug.cgi?id=669854 Closes: https://bugs.gentoo.org/show_bug.cgi?id=669884 Signed-off-by: Conrad Kostecki kostecki.com> Package-Manager: Portage-2.3.51, Repoman-2.3.11 Closes: https://github.com/gentoo/gentoo/pull/10283 Signed-off-by: Virgil Dupras gentoo.org> dev-lang/mujs/Manifest | 1 + dev-lang/mujs/files/mujs-1.0.5-flags.patch | 30 +++++++++++++++++ dev-lang/mujs/metadata.xml | 8 +++++ dev-lang/mujs/mujs-1.0.5.ebuild | 52 ++++++++++++++++++++++++++++++ 4 files changed, 91 insertions(+) diff --git a/dev-lang/mujs/Manifest b/dev-lang/mujs/Manifest index 55458109be0..026fba50ce5 100644 --- a/dev-lang/mujs/Manifest +++ b/dev-lang/mujs/Manifest @@ -1,3 +1,4 @@ DIST mujs-0_p20161202.tar.gz 105413 BLAKE2B a65a343d6f60975c88001cdd8eae881559eaf8ba94cf26c8aa9a9a3837cd47ee798c784ed9e90380a76ef328e56d63d1dccd8a85a4a7496d31046d221cf8d7b9 SHA512 90dd1bce44740715a6f642bdb376be230c4a03c7970c2026479cf014a080b98b56a2131ca7ef8bf9c05b91285fe7dcc21dd4ca83879750351d57088408a62cbc DIST mujs-1.0.1.tar.gz 116948 BLAKE2B 54d898eff95e65688a51d9df9175964609a55ad3243ffaa4da10f27a6262a207777dd500cb76aefc22aa52799fed577864d15dfec9ed4aea24f0a4f1ff8dfa0a SHA512 46cbc45735dbf173d7fa5839e3b511730e4d42933c2286d170767659649ea88c2a3dcc74fb986d1eedb1d4fec8fcaaba146805cc9d0ef7da98bb5a9ce0c80a96 DIST mujs-1.0.4.tar.xz 91520 BLAKE2B 6ffe62b19b140e2ae63ebe59a3b3bd352936ccba53dda3b0fcf575440dc790a0767c7de8c0a1441d26c11c65074520a80050cc0efa1113be0df51a802e719574 SHA512 a32498fee20ab6ddc8bbf79b4fdd82f3560d4e4b28bbe57c4e8f1df4a8a5367a689b6c9a391761abe47a8f15d2832fede4a508330eb181744b9563ae9954c102 +DIST mujs-1.0.5.tar.gz 119353 BLAKE2B 48f1b598e50d5804b0d64230cdd6b4d3f719187ea0906f45c9f45baee2c8df59c6fd09dc25afc9e1ce4e20a9866d158d16a4632bec552fddd8fac70b20e2363f SHA512 c1c59b5e80e0e5f580f30dfc0b4707b6a1e44a73c746b9783bb24d91429ddf8ed670a7663478300cc568cfc15a511720b6d18be2ade40a3a66fc7ab8f3933c2d diff --git a/dev-lang/mujs/files/mujs-1.0.5-flags.patch b/dev-lang/mujs/files/mujs-1.0.5-flags.patch new file mode 100644 index 00000000000..50de4fcff21 --- /dev/null +++ b/dev-lang/mujs/files/mujs-1.0.5-flags.patch @@ -0,0 +1,30 @@ +--- a/Makefile 2018-09-11 12:47:31.000000000 +0200 ++++ b/Makefile 2018-10-28 20:09:17.000000000 +0100 +@@ -15,7 +15,7 @@ + + # Compiler flags for various configurations: + +-CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter ++CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter + + ifeq "$(CC)" "clang" + CFLAGS += -Wunreachable-code +@@ -30,9 +30,6 @@ + else ifeq "$(build)" "sanitize" + CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer + LDFLAGS += -fsanitize=address +-else +- CFLAGS += -Os +- LDFLAGS += -Wl,-s + endif + + ifeq "$(HAVE_READLINE)" "yes" +@@ -78,7 +75,7 @@ + + $(OUT)/libmujs.so: one.c $(HDRS) + @ mkdir -p $(dir $@) +- $(CC) $(CFLAGS) -fPIC -shared -o $@ $< -lm ++ $(CC) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o $@ $< -lm + + $(OUT)/mujs: $(OUT)/libmujs.o $(OUT)/main.o + @ mkdir -p $(dir $@) diff --git a/dev-lang/mujs/metadata.xml b/dev-lang/mujs/metadata.xml index 68674fe1b80..ea8269a7881 100644 --- a/dev-lang/mujs/metadata.xml +++ b/dev-lang/mujs/metadata.xml @@ -9,4 +9,12 @@ vdupras@gentoo.org Virgil Dupras + + MuJS is a lightweight Javascript interpreter designed for embedding in + other software to extend them with scripting capabilities. + + + https://github.com/ccxvii/mujs/issues + ccxvii/mujs + diff --git a/dev-lang/mujs/mujs-1.0.5.ebuild b/dev-lang/mujs/mujs-1.0.5.ebuild new file mode 100644 index 00000000000..11960e25273 --- /dev/null +++ b/dev-lang/mujs/mujs-1.0.5.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic multilib toolchain-funcs + +DESCRIPTION="An embeddable Javascript interpreter in C." +HOMEPAGE=" + http://mujs.com/ + https://github.com/ccxvii/mujs/ +" +SRC_URI="https://github.com/ccxvii/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="static-libs" + +PATCHES=( + "${FILESDIR}/${P}-flags.patch" +) + +src_prepare() { + default + + tc-export AR CC + + append-cflags -fPIC -Wl,-soname=lib${PN}.so.${PV} +} + +src_compile() { + emake VERSION=${PV} prefix=/usr shared +} + +src_install() { + local myeconfargs=( + DESTDIR="${ED}" + install-shared + libdir="/usr/$(get_libdir)" + prefix="/usr" + VERSION="${PV}" + $(usex static-libs install-static '') + ) + + emake "${myeconfargs[@]}" + + mv -v "${D}"/usr/$(get_libdir)/lib${PN}.so{,.${PV}} || die + + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.${PV:0:1} +}