diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-13 11:43:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-13 11:43:14 +0100 |
commit | 128025db16ea525715d1f5170c635c4f42ce4881 (patch) | |
tree | 07a1048840d97aefa9778386f8a8abc27940c708 /dev-lang/mujs | |
parent | 37cf2a8dbadd546a550aac7c8079c3f77427cb63 (diff) |
gentoo auto-resync : 13:04:2023 - 11:43:14
Diffstat (limited to 'dev-lang/mujs')
-rw-r--r-- | dev-lang/mujs/Manifest | 3 | ||||
-rw-r--r-- | dev-lang/mujs/files/mujs-1.3.3-flags.patch | 12 | ||||
-rw-r--r-- | dev-lang/mujs/mujs-1.3.3.ebuild | 61 |
3 files changed, 76 insertions, 0 deletions
diff --git a/dev-lang/mujs/Manifest b/dev-lang/mujs/Manifest index 8434569ca7ce..2bbe6a2e72c5 100644 --- a/dev-lang/mujs/Manifest +++ b/dev-lang/mujs/Manifest @@ -1,4 +1,7 @@ AUX mujs-1.1.1-flags.patch 313 BLAKE2B c0dfb2aa7721fe865b4c04141924da299db48d900a6fab883dc76bf274cd60ca8749febd80e6b106e60cc36c4fcefa76d5414e29ef1ef7c774a7e912088895c0 SHA512 8d189613398203693e35c4313d3b7688c73ec38b426eea93a9cf96a21df11bb651afe0191168ca3c23a69f9d77390ed2829c2bc2204f04cb7621fb9f286a7266 +AUX mujs-1.3.3-flags.patch 284 BLAKE2B 8e31eea006e6551a7155607cc43dd60844a686fe41a9d4c5e9d660bb984b6e255b3d515ae691a38eee8930a5f2102a8392a0876519780ce728af9305d99358ea SHA512 3c8e97f6966a7a2d3e2f72ac1c4235c75cf6f419e8dd2a9a48639f74d005177f022c8f90645159090ec423bd441812abdb351c3599b4f280f4f88c39b4ce9946 DIST mujs-1.3.2.tar.gz 127899 BLAKE2B 4de5e1e60c5d6af9a20d8bb1fe2612d6c90a6b5557a66524bf81747e893a89a88b4da7e5393325923c6eb0788679da4013f25032cad23e547f15a1d49cf0a738 SHA512 ccffb04171f7ecec2cfa6f0e59859acc911836370a648e4c6703db174631ce316413a64ebf4b32eea3d3b09221ff01861cda91f4b1b9bebf495168f26f90daf5 +DIST mujs-1.3.3.tar.gz 128097 BLAKE2B 9b880dc462af8945e647994f9a42cf121461c6b295538db6cef818919a7c2418ebe1df7d36f69214279ad2414d0ce7149a541a3533e766274624b9c44b733db9 SHA512 74288484185473a813c55e08dcc2fefba46f87651d3a1fcea6ac843bb09a4150e13e0d46b348a34380a0defdeaa388cc93b6f7f569a7886091a34b4951b9461b EBUILD mujs-1.3.2.ebuild 1653 BLAKE2B 07b1ce14dd450d024e6f4d2c5fb1e778737b697ba06ff47bbc9c4f9c2557afe3e64e0e94a6f171604431fc5271ca043fa661c55796559f2cd28418d4c0eca0c4 SHA512 8f292ad3a3a25d42053832e30e2e2100cd80ef0e362aaddf95fa9d15dff8f2566393c1c1ff40369cd6717df553260a287ab59cdc87371cb574f055fdf8fb729e +EBUILD mujs-1.3.3.ebuild 1646 BLAKE2B a20aa30d8fbf54dea52133832adef9914061d6c2c34340c94901fe0e07d8548676246f3ed57c3bb990c88e575ddf76bb7e24b0dff4541758cea5b76ede6b4c1d SHA512 e5f3e0cba9b9769d16167ccadea875c4a69abd460623aaa5edb534a6ce7a6c867d57e473001349bfae10094c70d032176d6639efe04eded030296b7da9ec5c6f MISC metadata.xml 713 BLAKE2B 854afbc1219508e2b29aad5f4b83d0a869f1a70c9380fd624ce844be2d4ac3001ad0fe406b8a96c244d2d4837d8921ffd68bb424cf997d804fb426da0d2888b9 SHA512 36d958686ead6fa0cb13dfd8048f036ed833146fe786da0f2ce4f829343925472846d4164c3bbdd1ad4a9e04e8be5fd9b68e44cfef5139194f1aa7359250ed21 diff --git a/dev-lang/mujs/files/mujs-1.3.3-flags.patch b/dev-lang/mujs/files/mujs-1.3.3-flags.patch new file mode 100644 index 000000000000..90709863015f --- /dev/null +++ b/dev-lang/mujs/files/mujs-1.3.3-flags.patch @@ -0,0 +1,12 @@ +diff --git a/Makefile.oirg b/Makefile +index 24049d3..5d5d58d 100644 +--- a/Makefile.oirg ++++ b/Makefile +@@ -5,6 +5,7 @@ + default: build/debug/mujs build/debug/mujs-pp + + CFLAGS = -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter ++CFLAGS += $(XCFLAGS) $(XLDFLAGS) + + OPTIM = -O3 + diff --git a/dev-lang/mujs/mujs-1.3.3.ebuild b/dev-lang/mujs/mujs-1.3.3.ebuild new file mode 100644 index 000000000000..6c8aa130e526 --- /dev/null +++ b/dev-lang/mujs/mujs-1.3.3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic multilib toolchain-funcs + +DESCRIPTION="An embeddable JavaScript interpreter written in C" +HOMEPAGE="https://mujs.com/ https://github.com/ccxvii/mujs" +SRC_URI="https://mujs.com/downloads/${P}.tar.gz" + +LICENSE="ISC" +# The subslot matches the SONAME +SLOT="0/${PV}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos" + +RDEPEND="sys-libs/readline:=" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-flags.patch +) + +src_prepare() { + default + + tc-export AR CC + + append-cflags -fPIC + + # The library's ABI (and API) might change in new releases + # Diff 'usr/include/mujs.h' across releases to validate + if [[ ${CHOST} == *-darwin* ]] ; then + append-cflags -Wl,-install_name,"${EPREFIX}"/usr/$(get_libdir)/lib${PN}.${PV}.dylib + else + append-cflags -Wl,-soname=lib${PN}.so.${PV} + fi +} + +src_compile() { + # We need to use ${PV} for the pkgconfig file, see: #784461 + emake \ + VERSION=${PV} \ + XCFLAGS="${CFLAGS}" \ + XLDFLAGS="${LDFLAGS}" \ + prefix=/usr \ + release +} + +src_install() { + emake \ + DESTDIR="${ED}" \ + VERSION=${PV} \ + libdir="/usr/$(get_libdir)" \ + prefix=/usr \ + install-shared + + mv -v "${ED}"/usr/$(get_libdir)/lib${PN}$(get_libname) "${ED}"/usr/$(get_libdir)/lib${PN}$(get_libname ${PV}) || die "Failed adding version suffix to mujs shared library" + dosym lib${PN}$(get_libname ${PV}) /usr/$(get_libdir)/lib${PN}$(get_libname) + dosym lib${PN}$(get_libname ${PV}) /usr/$(get_libdir)/lib${PN}$(get_libname ${PV:0:1}) +} |