diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-lang/mujs | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-lang/mujs')
-rw-r--r-- | dev-lang/mujs/Manifest | 7 | ||||
-rw-r--r-- | dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch | 28 | ||||
-rw-r--r-- | dev-lang/mujs/files/mujs-1.0.1-gentoo.patch | 37 | ||||
-rw-r--r-- | dev-lang/mujs/metadata.xml | 8 | ||||
-rw-r--r-- | dev-lang/mujs/mujs-0_p20161202.ebuild | 34 | ||||
-rw-r--r-- | dev-lang/mujs/mujs-1.0.1-r1.ebuild | 42 |
6 files changed, 156 insertions, 0 deletions
diff --git a/dev-lang/mujs/Manifest b/dev-lang/mujs/Manifest new file mode 100644 index 000000000000..e58b1932806d --- /dev/null +++ b/dev-lang/mujs/Manifest @@ -0,0 +1,7 @@ +AUX mujs-0_p20150202-Makefile.patch 593 BLAKE2B f2e12bc18ae155a4cc5c69a9b1c5ad749e206a567fc7c58ae453f85f2dbda6cb5f0c462e853ad6c52e422a0dcab9834312d1c2cdbd419759ceedaa4b5513314d SHA512 2c6c0b0ba8dc757a1ae57fbfe5ea56970e07177b45e7d7aa7ed41896ead5b0d4200003897f9c837fc97e96bdc2fd51229fd2629e8780194ad12f86940591878e +AUX mujs-1.0.1-gentoo.patch 788 BLAKE2B b3a62c59226c79a81c748b1c7d6cfa80e89d909f47946133e22fc07f57f99bead5a61be8b9b76902ca04f86d2a7494940145118cf464ef2a39a651797ce5921b SHA512 b7409ff5aa9e5e38d3d9b7a3805699847a043ee83d46520d2b2ac011ac0a66588126a5c6761e919f9f9c7c510ff5d62d7c22c97739b52e611f5b89a911f52169 +DIST mujs-0_p20161202.tar.gz 105413 BLAKE2B a65a343d6f60975c88001cdd8eae881559eaf8ba94cf26c8aa9a9a3837cd47ee798c784ed9e90380a76ef328e56d63d1dccd8a85a4a7496d31046d221cf8d7b9 SHA512 90dd1bce44740715a6f642bdb376be230c4a03c7970c2026479cf014a080b98b56a2131ca7ef8bf9c05b91285fe7dcc21dd4ca83879750351d57088408a62cbc +DIST mujs-1.0.1.tar.gz 116948 BLAKE2B 54d898eff95e65688a51d9df9175964609a55ad3243ffaa4da10f27a6262a207777dd500cb76aefc22aa52799fed577864d15dfec9ed4aea24f0a4f1ff8dfa0a SHA512 46cbc45735dbf173d7fa5839e3b511730e4d42933c2286d170767659649ea88c2a3dcc74fb986d1eedb1d4fec8fcaaba146805cc9d0ef7da98bb5a9ce0c80a96 +EBUILD mujs-0_p20161202.ebuild 824 BLAKE2B ef5920796454ab2cb26c54149228da8a4903f708fef17972a8bad581778e598b5e682d46f34327873d6fea3925b8310668c57a8ae9339a18624ce418676d8797 SHA512 15f9ad4f8bfa67ba51cf2429a8d985974fd39af83ddc53c238acfa5293b055a116c7de6c91271a975d7b044b6c5cd6c1bb645db5d3400b4399f9f96f7b4cd401 +EBUILD mujs-1.0.1-r1.ebuild 1103 BLAKE2B ca260b9e9864f98c2dc94d3297f4ebf98e7e6ccab60803c0abf90981e5b91e6505e9643e1e6d36e6da803a19d3fb935bcdc4dd7cabdfff9abcc5450a5dce9306 SHA512 98525a0a8fea64b8a223b88f082cdf8634e5eca55e51c5c792c6ff3407408e83c69d9d1b9f6bc6e36002bf33b7ce21fe927938c93fac1a925902e643336841e5 +MISC metadata.xml 237 BLAKE2B f22c3926ba75c18fce7667217807f3710a315b12b1341622c949e7bc0056cd1cb403ea6c66d838675f3cb5dcd53d2fc4ec71425ec3f96aaffb94b70b73e99320 SHA512 ae2360aa6b1b00c67e0acea4935c02b64585b9a15e126fec9d5d99637021c542c0a495e5116205f3da287def46fa5b19cb1a7f3042c12c5f7a78d66d92fcb03f diff --git a/dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch b/dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch new file mode 100644 index 000000000000..4dca385e3792 --- /dev/null +++ b/dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch @@ -0,0 +1,28 @@ +--- mujs-0_p20150202/Makefile ++++ mujs-0_p20150202/Makefile +@@ -2,23 +2,17 @@ + HDRS := $(wildcard js*.h mujs.h utf.h regex.h) + OBJS := $(SRCS:%.c=build/%.o) + +-prefix ?= /usr/local ++prefix ?= /usr + bindir ?= $(prefix)/bin + incdir ?= $(prefix)/include + libdir ?= $(prefix)/lib + +-CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter ++CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter + + ifeq "$(CC)" "clang" + CFLAGS += -Wunreachable-code + endif + +-ifeq "$(build)" "debug" +-CFLAGS += -g +-else +-CFLAGS += -O2 +-endif +- + default: build build/mujs build/mujsone + + debug: diff --git a/dev-lang/mujs/files/mujs-1.0.1-gentoo.patch b/dev-lang/mujs/files/mujs-1.0.1-gentoo.patch new file mode 100644 index 000000000000..c6c7977ac75d --- /dev/null +++ b/dev-lang/mujs/files/mujs-1.0.1-gentoo.patch @@ -0,0 +1,37 @@ +--- a/Makefile ++++ b/Makefile +@@ -2,7 +2,7 @@ + + build ?= release + +-prefix ?= /usr/local ++prefix ?= /usr + bindir ?= $(prefix)/bin + incdir ?= $(prefix)/include + libdir ?= $(prefix)/lib +@@ -11,7 +11,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 +@@ -22,16 +22,6 @@ + LDFLAGS += -Wl,--gc-sections + endif + +-ifeq "$(build)" "debug" +-CFLAGS += -g +-else ifeq "$(build)" "sanitize" +-CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer +-LDFLAGS += -fsanitize=address +-else +-CFLAGS += -Os +-LDFLAGS += -Wl,-s +-endif +- + # You shouldn't need to edit anything below here. + + OUT := build/$(build) diff --git a/dev-lang/mujs/metadata.xml b/dev-lang/mujs/metadata.xml new file mode 100644 index 000000000000..a535b8852829 --- /dev/null +++ b/dev-lang/mujs/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> +<email>xmw@gentoo.org</email> +<name>Michael Weber</name> +</maintainer> +</pkgmetadata> diff --git a/dev-lang/mujs/mujs-0_p20161202.ebuild b/dev-lang/mujs/mujs-0_p20161202.ebuild new file mode 100644 index 000000000000..711c77f09503 --- /dev/null +++ b/dev-lang/mujs/mujs-0_p20161202.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs vcs-snapshot + +DESCRIPTION="lightweight Javascript interpreter" +HOMEPAGE="http://mujs.com/" +SRC_URI="http://git.ghostscript.com/?p=mujs.git;a=snapshot;h=fd003eceda531e13fbdd1aeb6e9c73156496e569;sf=tgz -> ${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="" + +DEPEND="" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-0_p20150202-Makefile.patch" + # workaround for linkage of app-text/mupdf-1.7a + # TODO: generate a shared library and IUSE=static-libs +) + +src_prepare() { + default + append-cflags -fPIC + tc-export CC +} + +src_install() { + emake DESTDIR="${ED}" install +} diff --git a/dev-lang/mujs/mujs-1.0.1-r1.ebuild b/dev-lang/mujs/mujs-1.0.1-r1.ebuild new file mode 100644 index 000000000000..d0a2333dcf41 --- /dev/null +++ b/dev-lang/mujs/mujs-1.0.1-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit flag-o-matic multilib toolchain-funcs + +DESCRIPTION="lightweight Javascript interpreter" +HOMEPAGE="http://mujs.com/" +SRC_URI="http://git.ghostscript.com/?p=mujs.git;a=snapshot;h=4792d16f17b15a1eca3c2a9c856dc13fda1d23c5;sf=tgz -> ${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}"/${PN}-1.0.1-gentoo.patch +) +S=${WORKDIR}/${PN}-4792d16 + +src_prepare() { + default + append-cflags -fPIC -Wl,-soname=lib${PN}.so.${PV} + tc-export CC +} + +src_compile() { + emake VERSION=${PV} shared +} + +src_install() { + emake \ + DESTDIR="${ED}" \ + VERSION=${PV} \ + libdir="/usr/$(get_libdir)" \ + install-shared \ + $(usex static-libs install-static '') + + mv -v "${D}"/usr/$(get_libdir)/lib${PN}.so{,.${PV}} || die + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so || die + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.${PV:0:1} || die +} |