From 27dfd272ae3be15b1017f733682211afa1c7c0f0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 2 Nov 2017 21:07:25 +0000 Subject: gentoo resync : 02.11.2017 --- net-libs/gnome-online-accounts/Manifest | 6 +- .../gnome-online-accounts-3.22.6-r1.ebuild | 93 ---------- .../gnome-online-accounts-3.22.7.ebuild | 93 ++++++++++ .../gnome-online-accounts-3.24.3.ebuild | 93 ---------- net-libs/libnsl/Manifest | 2 +- net-libs/libnsl/libnsl-0.ebuild | 3 +- net-libs/libsrtp/Manifest | 4 +- net-libs/libsrtp/libsrtp-1.6.0.ebuild | 3 +- net-libs/libsrtp/libsrtp-2.1.0.ebuild | 1 + net-libs/nodejs/Manifest | 6 +- .../nodejs/files/nodejs-8.4.0-shared-nghttp2.patch | 105 ----------- .../nodejs/files/nodejs-8.9.0-shared-nghttp2.patch | 105 +++++++++++ net-libs/nodejs/nodejs-8.9.0.ebuild | 197 +++++++++++++++++++++ net-libs/nodejs/nodejs-9.0.0.ebuild | 197 +++++++++++++++++++++ 14 files changed, 607 insertions(+), 301 deletions(-) delete mode 100644 net-libs/gnome-online-accounts/gnome-online-accounts-3.22.6-r1.ebuild create mode 100644 net-libs/gnome-online-accounts/gnome-online-accounts-3.22.7.ebuild delete mode 100644 net-libs/gnome-online-accounts/gnome-online-accounts-3.24.3.ebuild delete mode 100644 net-libs/nodejs/files/nodejs-8.4.0-shared-nghttp2.patch create mode 100644 net-libs/nodejs/files/nodejs-8.9.0-shared-nghttp2.patch create mode 100644 net-libs/nodejs/nodejs-8.9.0.ebuild create mode 100644 net-libs/nodejs/nodejs-9.0.0.ebuild (limited to 'net-libs') diff --git a/net-libs/gnome-online-accounts/Manifest b/net-libs/gnome-online-accounts/Manifest index 56e16ebd64fd..90d8e19cba07 100644 --- a/net-libs/gnome-online-accounts/Manifest +++ b/net-libs/gnome-online-accounts/Manifest @@ -1,10 +1,8 @@ DIST gnome-online-accounts-3.22.5.tar.xz 1404888 SHA256 a8a4894ea5c6ba4508f8fec539287f2ebaf2c9bcf4426463b6724ca58b9d8982 SHA512 5c87decaeb64850be02c3191088d518a5c3b84cb8d202692ff50b59dbf83f28a56f5bf34873ec9cc16301da3f8b3f41a892cf6a67f9e9f9f2bf35a8bde07a258 WHIRLPOOL abc5c08bcc384159ff021fcec960baf707b49bbacf1d07984b01d7180244c8e4424e4c14ce3cdb7fd89c0e88dd33bfa40dbfcd32e1ace1a6730ef64d143ba64f -DIST gnome-online-accounts-3.22.6.tar.xz 1404728 SHA256 464248492840f6e3c6b3a30c54dad4995c1e348bce04c899a6a26b7a2551f7e5 SHA512 6b5370447ccc5407ed5abd32b70c94c52de1166466e731e2a0295800e598be5c068a8fd6c492d439bce1a7faea8ed3638f689438d42e335997892738b51ed673 WHIRLPOOL 44494f1fb48e17874120ebf0a5b765f40dbb277030d01ee073377a5030af18249a422397f6f63dc2ebebdd759d083e021cf4c1bae556fc217d64026d4afec5c0 -DIST gnome-online-accounts-3.24.3.tar.xz 1410696 SHA256 252e58eb953032f84731724ff2e8c8afb403ca803bd35382eabcfeee9c703854 SHA512 356e3b967f1821303926334d00cb2df875d81d20bb38905ba754b4aa03644aabd561e1da2de8df2325fac50b8d02e3422f2bc4f22bdbc3fe8b32c11ded738ce2 WHIRLPOOL ffaa8943b5d21989b70384712346a6846c1db991ceca61d53041e807316d63b8997381bb5ae7595a60f1cb6729e639ecd42b8a198d9fbf3721a5df9898fc9e66 +DIST gnome-online-accounts-3.22.7.tar.xz 1404820 SHA256 bf63daf090c147839c2c7c2ed370e47478a02453e41b5570d79f2644cad10ef4 SHA512 76a5b6897540f05126786caeddd392d465063571e3884484aa68cd66de851f2f72351afe74dd7e38d8fb8a628d57bd8dde0c8379f909f9de19e451cdf9112b67 WHIRLPOOL 645fca0a566c5e16947e67b375f410d6579c6c26260dca8a056baa3763b309ef1cb7e2624bc41674b2c9e5432991f38cae9bdeb91937a7851486cac5c3bcdbfb DIST gnome-online-accounts-3.24.4.tar.xz 1412004 SHA256 96e13c08dbbd4cff8a3dff5d1d4229fc3dbc6e007f1c4f5bad7497c8ce91767d SHA512 6e12f03d3ff9b9c831705f0310923b2c3e0daeee1304bb3dfa52fd17d6df49656f3380a1ffd9f30f75890340fb7ee23f53789e4df357a0aeba4e31667fd9c45a WHIRLPOOL 9eaa8f2d754b3c8b92fceefb28497e63ebcf8646bd8a6759db9c43f50f90d257714d999365f0359b9b03c3fbf83c231062945e360d096ca855ac6e2b8635c54b EBUILD gnome-online-accounts-3.22.5.ebuild 2349 SHA256 7ba6d34f56e8d10e2f052075e7c189ebb29ae7d9e3c19686d777cfd4242b427c SHA512 139d7c40e5fa01a3a9e4f90f3e2a350b450ef82c13f94ac2208fd9184099a01924e26616f7a17ccce826839a254f0b02f1eab9c4b0663d8249f389e92c9c366a WHIRLPOOL 9ed1f6677e8a2f57604e34b4a621efa0b995e833fe7947fdbf3ccea06df13277c7d0a2a767fcecd23c510cbd3f6891abd63310de64aadd88bbd9ce2e1183e3a5 -EBUILD gnome-online-accounts-3.22.6-r1.ebuild 2473 SHA256 47cd2c29cd0b56bb8f6f99258f7ce1109996b4b14a517b9c8a2b00c192461ff0 SHA512 992f6003eb9fcf683a62a8f45aa63a9e2a59f3b962396a7443dad80642ede06b112caa4b8b26af6781fc5ca28ea76a22269381e94ed7bfde92fb3e40f9bb2d1c WHIRLPOOL 014204469620dedc072774584c04d807d6923f884e65c0cc320a3f7b305f90d48d06a44d9d3bd10dfb586292995d5a6c6572ef9ea4ee14c771633e34cb0e9019 -EBUILD gnome-online-accounts-3.24.3.ebuild 2473 SHA256 6ac7794c79943e543795aeba7813f9ac2581b02045a9e24a2ee778017e8100be SHA512 d4191659707cd43ccd3c843233890700fbfce1379fb4edc4d2f97d847607168d240b1d8ac82d46b3822b11f5042b8f2588a0e47ed7a9b03befe14efd2ab7480e WHIRLPOOL f961257d5244fa5b90df4a36e8931de5d48d49a33fbcb0ac42e80ec279b853800a8bbea41b0990c4ade75c4845fd172f62b815bb7dad98f05de31ab843dd2f76 +EBUILD gnome-online-accounts-3.22.7.ebuild 2473 SHA256 47cd2c29cd0b56bb8f6f99258f7ce1109996b4b14a517b9c8a2b00c192461ff0 SHA512 992f6003eb9fcf683a62a8f45aa63a9e2a59f3b962396a7443dad80642ede06b112caa4b8b26af6781fc5ca28ea76a22269381e94ed7bfde92fb3e40f9bb2d1c WHIRLPOOL 014204469620dedc072774584c04d807d6923f884e65c0cc320a3f7b305f90d48d06a44d9d3bd10dfb586292995d5a6c6572ef9ea4ee14c771633e34cb0e9019 EBUILD gnome-online-accounts-3.24.4.ebuild 2473 SHA256 6ac7794c79943e543795aeba7813f9ac2581b02045a9e24a2ee778017e8100be SHA512 d4191659707cd43ccd3c843233890700fbfce1379fb4edc4d2f97d847607168d240b1d8ac82d46b3822b11f5042b8f2588a0e47ed7a9b03befe14efd2ab7480e WHIRLPOOL f961257d5244fa5b90df4a36e8931de5d48d49a33fbcb0ac42e80ec279b853800a8bbea41b0990c4ade75c4845fd172f62b815bb7dad98f05de31ab843dd2f76 MISC ChangeLog 8528 SHA256 b4e49992d5c0f21e95fe0d96838b16885163ca5ea684b92e6ed2f4e15bf187fe SHA512 4fb5faddd15e26590d74b14fe3ec186aa5a912a6ae332766b6fbdf90006827f3557230dc757f381e21e167d2354bb62d2b6bcf6bc8ba68a9970790ea466b449b WHIRLPOOL 40077ee11250f856b21a79342b15e8992bb0177356c0a2e6011a9dcdc61fed07c7863291fb4c01cf63b2f6d9f3220ebd0102ac00c1b51bb079e500a8648c9c98 MISC ChangeLog-2015 9567 SHA256 aaca8489a27e3f97315745e9baf0a81756e383789b4f72efb640efe128cecf3e SHA512 da224604f471b220af662ab97055dafe7ba3a183e815d7a54b4c0aae4b66e525c7e1fa886d3afaed96f38606085aed1f219fd5db04646c10d04d5ae18fba7433 WHIRLPOOL cda8948541042f5e0039cac0063d834fafcd65bafa440be1fbc1953275b46665d6725d06dab4f10802f311a0f9fd9da1d4ca9b88c3c79f64209453861242c0c9 diff --git a/net-libs/gnome-online-accounts/gnome-online-accounts-3.22.6-r1.ebuild b/net-libs/gnome-online-accounts/gnome-online-accounts-3.22.6-r1.ebuild deleted file mode 100644 index f5e78d51ff8c..000000000000 --- a/net-libs/gnome-online-accounts/gnome-online-accounts-3.22.6-r1.ebuild +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -GNOME2_LA_PUNT="yes" -VALA_USE_DEPEND="vapigen" - -inherit gnome2 vala - -DESCRIPTION="GNOME framework for accessing online accounts" -HOMEPAGE="https://wiki.gnome.org/Projects/GnomeOnlineAccounts" - -LICENSE="LGPL-2+" -SLOT="0/1" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" - -IUSE="debug gnome +introspection kerberos vala" # telepathy" -REQUIRED_USE="vala? ( introspection )" - -# pango used in goaeditablelabel -# libsoup used in goaoauthprovider -# goa kerberos provider is incompatible with app-crypt/heimdal, see -# https://bugzilla.gnome.org/show_bug.cgi?id=692250 -# json-glib-0.16 needed for bug #485092 -RDEPEND=" - >=dev-libs/glib-2.40:2 - >=app-crypt/libsecret-0.5 - >=dev-libs/json-glib-0.16 - dev-libs/libxml2:2 - >=net-libs/libsoup-2.42:2.4 - net-libs/rest:0.7 - net-libs/telepathy-glib - >=net-libs/webkit-gtk-2.7.2:4 - >=x11-libs/gtk+-3.19.12:3 - x11-libs/pango - - introspection? ( >=dev-libs/gobject-introspection-0.6.2:= ) - kerberos? ( - app-crypt/gcr:0=[gtk] - app-crypt/mit-krb5 ) -" -# telepathy? ( net-libs/telepathy-glib ) -# goa-daemon can launch gnome-control-center -PDEPEND="gnome? ( >=gnome-base/gnome-control-center-3.2[gnome-online-accounts(+)] )" - -DEPEND="${RDEPEND} - vala? ( $(vala_depend) ) - dev-libs/libxslt - >=dev-util/gtk-doc-am-1.3 - >=dev-util/gdbus-codegen-2.30.0 - >=dev-util/intltool-0.50.1 - sys-devel/gettext - virtual/pkgconfig - - dev-libs/gobject-introspection-common - gnome-base/gnome-common -" -# eautoreconf needs gobject-introspection-common, gnome-common - -# Due to sub-configure -QA_CONFIGURE_OPTIONS=".*" - -src_prepare() { - use vala && vala_src_prepare - gnome2_src_prepare -} - -src_configure() { - # TODO: Give users a way to set the G/FB/Windows Live secrets - # telepathy optional support is really a badly one, bug #494456 - gnome2_src_configure \ - --disable-static \ - --enable-backend \ - --enable-documentation \ - --enable-exchange \ - --enable-facebook \ - --enable-flickr \ - --enable-foursquare \ - --enable-imap-smtp \ - --enable-lastfm \ - --enable-media-server \ - --enable-owncloud \ - --enable-pocket \ - --enable-telepathy \ - --enable-windows-live \ - $(usex debug --enable-debug=yes ' ') \ - $(use_enable kerberos) \ - $(use_enable introspection) \ - $(use_enable vala) - #$(use_enable telepathy) - # gudev & cheese from sub-configure is overriden - # by top level configure, and disabled so leave it like that -} diff --git a/net-libs/gnome-online-accounts/gnome-online-accounts-3.22.7.ebuild b/net-libs/gnome-online-accounts/gnome-online-accounts-3.22.7.ebuild new file mode 100644 index 000000000000..f5e78d51ff8c --- /dev/null +++ b/net-libs/gnome-online-accounts/gnome-online-accounts-3.22.7.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +GNOME2_LA_PUNT="yes" +VALA_USE_DEPEND="vapigen" + +inherit gnome2 vala + +DESCRIPTION="GNOME framework for accessing online accounts" +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeOnlineAccounts" + +LICENSE="LGPL-2+" +SLOT="0/1" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +IUSE="debug gnome +introspection kerberos vala" # telepathy" +REQUIRED_USE="vala? ( introspection )" + +# pango used in goaeditablelabel +# libsoup used in goaoauthprovider +# goa kerberos provider is incompatible with app-crypt/heimdal, see +# https://bugzilla.gnome.org/show_bug.cgi?id=692250 +# json-glib-0.16 needed for bug #485092 +RDEPEND=" + >=dev-libs/glib-2.40:2 + >=app-crypt/libsecret-0.5 + >=dev-libs/json-glib-0.16 + dev-libs/libxml2:2 + >=net-libs/libsoup-2.42:2.4 + net-libs/rest:0.7 + net-libs/telepathy-glib + >=net-libs/webkit-gtk-2.7.2:4 + >=x11-libs/gtk+-3.19.12:3 + x11-libs/pango + + introspection? ( >=dev-libs/gobject-introspection-0.6.2:= ) + kerberos? ( + app-crypt/gcr:0=[gtk] + app-crypt/mit-krb5 ) +" +# telepathy? ( net-libs/telepathy-glib ) +# goa-daemon can launch gnome-control-center +PDEPEND="gnome? ( >=gnome-base/gnome-control-center-3.2[gnome-online-accounts(+)] )" + +DEPEND="${RDEPEND} + vala? ( $(vala_depend) ) + dev-libs/libxslt + >=dev-util/gtk-doc-am-1.3 + >=dev-util/gdbus-codegen-2.30.0 + >=dev-util/intltool-0.50.1 + sys-devel/gettext + virtual/pkgconfig + + dev-libs/gobject-introspection-common + gnome-base/gnome-common +" +# eautoreconf needs gobject-introspection-common, gnome-common + +# Due to sub-configure +QA_CONFIGURE_OPTIONS=".*" + +src_prepare() { + use vala && vala_src_prepare + gnome2_src_prepare +} + +src_configure() { + # TODO: Give users a way to set the G/FB/Windows Live secrets + # telepathy optional support is really a badly one, bug #494456 + gnome2_src_configure \ + --disable-static \ + --enable-backend \ + --enable-documentation \ + --enable-exchange \ + --enable-facebook \ + --enable-flickr \ + --enable-foursquare \ + --enable-imap-smtp \ + --enable-lastfm \ + --enable-media-server \ + --enable-owncloud \ + --enable-pocket \ + --enable-telepathy \ + --enable-windows-live \ + $(usex debug --enable-debug=yes ' ') \ + $(use_enable kerberos) \ + $(use_enable introspection) \ + $(use_enable vala) + #$(use_enable telepathy) + # gudev & cheese from sub-configure is overriden + # by top level configure, and disabled so leave it like that +} diff --git a/net-libs/gnome-online-accounts/gnome-online-accounts-3.24.3.ebuild b/net-libs/gnome-online-accounts/gnome-online-accounts-3.24.3.ebuild deleted file mode 100644 index f5fea7795c11..000000000000 --- a/net-libs/gnome-online-accounts/gnome-online-accounts-3.24.3.ebuild +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -GNOME2_LA_PUNT="yes" -VALA_USE_DEPEND="vapigen" - -inherit gnome2 vala - -DESCRIPTION="GNOME framework for accessing online accounts" -HOMEPAGE="https://wiki.gnome.org/Projects/GnomeOnlineAccounts" - -LICENSE="LGPL-2+" -SLOT="0/1" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" - -IUSE="debug gnome +introspection kerberos vala" # telepathy" -REQUIRED_USE="vala? ( introspection )" - -# pango used in goaeditablelabel -# libsoup used in goaoauthprovider -# goa kerberos provider is incompatible with app-crypt/heimdal, see -# https://bugzilla.gnome.org/show_bug.cgi?id=692250 -# json-glib-0.16 needed for bug #485092 -RDEPEND=" - >=dev-libs/glib-2.44:2 - >=app-crypt/libsecret-0.5 - >=dev-libs/json-glib-0.16 - dev-libs/libxml2:2 - >=net-libs/libsoup-2.42:2.4 - net-libs/rest:0.7 - net-libs/telepathy-glib - >=net-libs/webkit-gtk-2.7.2:4 - >=x11-libs/gtk+-3.19.12:3 - x11-libs/pango - - introspection? ( >=dev-libs/gobject-introspection-0.6.2:= ) - kerberos? ( - app-crypt/gcr:0=[gtk] - app-crypt/mit-krb5 ) -" -# telepathy? ( net-libs/telepathy-glib ) -# goa-daemon can launch gnome-control-center -PDEPEND="gnome? ( >=gnome-base/gnome-control-center-3.2[gnome-online-accounts(+)] )" - -DEPEND="${RDEPEND} - vala? ( $(vala_depend) ) - dev-libs/libxslt - >=dev-util/gtk-doc-am-1.3 - >=dev-util/gdbus-codegen-2.30.0 - >=dev-util/intltool-0.50.1 - sys-devel/gettext - virtual/pkgconfig - - dev-libs/gobject-introspection-common - gnome-base/gnome-common -" -# eautoreconf needs gobject-introspection-common, gnome-common - -# Due to sub-configure -QA_CONFIGURE_OPTIONS=".*" - -src_prepare() { - use vala && vala_src_prepare - gnome2_src_prepare -} - -src_configure() { - # TODO: Give users a way to set the G/FB/Windows Live secrets - # telepathy optional support is really a badly one, bug #494456 - gnome2_src_configure \ - --disable-static \ - --enable-backend \ - --enable-documentation \ - --enable-exchange \ - --enable-facebook \ - --enable-flickr \ - --enable-foursquare \ - --enable-imap-smtp \ - --enable-lastfm \ - --enable-media-server \ - --enable-owncloud \ - --enable-pocket \ - --enable-telepathy \ - --enable-windows-live \ - $(usex debug --enable-debug=yes ' ') \ - $(use_enable kerberos) \ - $(use_enable introspection) \ - $(use_enable vala) - #$(use_enable telepathy) - # gudev & cheese from sub-configure is overriden - # by top level configure, and disabled so leave it like that -} diff --git a/net-libs/libnsl/Manifest b/net-libs/libnsl/Manifest index ae5f9cae0bb9..240442b57637 100644 --- a/net-libs/libnsl/Manifest +++ b/net-libs/libnsl/Manifest @@ -1,4 +1,4 @@ DIST libnsl-1.1.0.tar.gz 209148 SHA256 a23cfcf7f29f168b95e821d01217600096c05be8cd5c085450cb4f160425277b SHA512 12555ed701d06247b6774c6c2759ada280ffce73820976adb4aaa48b50b97121b1805412541778dfcdd8845af6a10b2e5a9dc0eb7b953e84467d0a40ad3360cd WHIRLPOOL c347bbd72b75d1e3ab0069f802da8e4e4e4931a8a61b4abed1dd664c4576e7e22e96c012858c684ec79a981aea84460eae3a2ccb8e94aa7bfecfdd99c3e54730 -EBUILD libnsl-0.ebuild 508 SHA256 270e32435767db6bcac69667faf7283f7c759275666a6ec77b824bb000f87306 SHA512 8eb53fa8435bc495128897d323db8f6bc41808e01d2f59797ab901bd3b773952318917bef83e7ed7d89764fdcc6075e210dace1a164d909aecbaee7c53059ce3 WHIRLPOOL 4ccbcfe7942a3124790b9aedaa88559cd5085f4ffd4ad49e223350daead23851b11d23932b72f20e55e820be83dc0474c5c284fb2c56d5a715029bea1e0e6fb0 +EBUILD libnsl-0.ebuild 499 SHA256 e8ea6e4fb3719dcf4dfb081fe881c90f0ce78ba8d2f24b756595fd54d5490692 SHA512 01c4d126c1b409d3e8ab22c2528a027325ecdb9eb99dc03959b3f6ea515c1cdfe76353069e7287128375a16364f654d56dd181ea93968a1b870370fd929bec15 WHIRLPOOL 46e2d2a3c41e89e2387b5746267a8fd9bc441d993dacd56db3462f025596d5fecc2578e7d15e9d20b974a1d4248b42d7330b12de0458ff0b471ac709cbe6717d EBUILD libnsl-1.1.0-r1.ebuild 736 SHA256 e1b7fdf9602adf1b615b24ec279fe49f973eb1add9e45aa1b6ed411d1bb5d900 SHA512 a3896d15411f106cad1e17252c43a7e36c1922be50af348a8cbb5e8ac435d883a56969d36da3880c5a9ec1dafaeebca8c29ff4cfbee6785029bb3c7c981f3136 WHIRLPOOL be3b7a23937bc2eb6f4f064183f9c70c864ad67e55fad101844e98f352cf2297850408bcea4f3b7c6f3aa941b88b976da4b8699c3883ab8c511507b307a53716 MISC metadata.xml 379 SHA256 ebf32af5bc074fc17a37c93745bc34847424be60d6d5d23a69d88baabc554bcf SHA512 00a77262e76176fbc54ff2d1d8ba070868f185f5f940abd25ad1af80fd52f1560c9e0290c42283a98519a653a334ed6dfd4e0f8540d10946253b3afc205bb753 WHIRLPOOL eab5963365c94d28e5e60cc0b4eaee3d576bf8cc3372eb739f0fcbdbf4f3c37fc1af7c90b39866e476fdcd2d529b7e78f2bbcc1d3b938c047702d09db3141fa6 diff --git a/net-libs/libnsl/libnsl-0.ebuild b/net-libs/libnsl/libnsl-0.ebuild index f5c68293a69b..08ff16d005de 100644 --- a/net-libs/libnsl/libnsl-0.ebuild +++ b/net-libs/libnsl/libnsl-0.ebuild @@ -10,7 +10,8 @@ HOMEPAGE="https://github.com/thkukuk/libnsl" SLOT="0/1" LICENSE="LGPL-2.1+" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux" + IUSE="" DEPEND=" "${tmp_npm_completion_file}" + newbashcomp "${tmp_npm_completion_file}" npm + sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die + + # Move man pages + doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* + + # Clean up + rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die + rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die + + local find_exp="-or -name" + local find_name=() + for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ + ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ + "*.md" "*.markdown" "*.bat" "*.cmd"; do + find_name+=( ${find_exp} "${match}" ) + done + + # Remove various development and/or inappropriate files and + # useless docs of dependend packages. + find "${LIBDIR}"/node_modules \ + \( -type d -name examples \) -or \( -type f \( \ + -iname "LICEN?E*" \ + "${find_name[@]}" \ + \) \) -exec rm -rf "{}" \; + fi +} + +src_test() { + out/${BUILDTYPE}/cctest || die + "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die +} + +pkg_postinst() { + einfo "The global npm config lives in /etc/npm. This deviates slightly" + einfo "from upstream which otherwise would have it live in /usr/etc/." + einfo "" + einfo "Protip: When using node-gyp to install native modules, you can" + einfo "avoid having to download extras by doing the following:" + einfo "$ node-gyp --nodedir /usr/include/node " +} diff --git a/net-libs/nodejs/nodejs-9.0.0.ebuild b/net-libs/nodejs/nodejs-9.0.0.ebuild new file mode 100644 index 000000000000..2c89bcd66219 --- /dev/null +++ b/net-libs/nodejs/nodejs-9.0.0.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +RESTRICT="test" + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="threads" + +inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs + +DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" +HOMEPAGE="https://nodejs.org/" +SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" + +LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" +IUSE="cpu_flags_x86_sse2 debug doc icu +npm +snapshot +ssl systemtap test" + +RDEPEND="icu? ( >=dev-libs/icu-59:= ) + npm? ( ${PYTHON_DEPS} ) + >=net-libs/http-parser-2.7.0:= + >=dev-libs/libuv-1.15.0:= + >=net-libs/nghttp2-1.25.0 + >=dev-libs/openssl-1.0.2g:0=[-bindist] + sys-libs/zlib" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + systemtap? ( dev-util/systemtap ) + test? ( net-misc/curl )" + +S="${WORKDIR}/node-v${PV}" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +PATCHES=( + "${FILESDIR}"/gentoo-global-npm-config.patch + "${FILESDIR}"/nodejs-8.9.0-shared-nghttp2.patch +) + +pkg_pretend() { + (use x86 && ! use cpu_flags_x86_sse2) && \ + die "Your CPU doesn't support the required SSE2 instruction." + + ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ + die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." +} + +src_prepare() { + tc-export CC CXX PKG_CONFIG + export V=1 + export BUILDTYPE=Release + + # fix compilation on Darwin + # https://code.google.com/p/gyp/issues/detail?id=260 + sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die + + # make sure we use python2.* while using gyp + sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die + sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die + + # less verbose install output (stating the same as portage, basically) + sed -i -e "/print/d" tools/install.py || die + + # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 + local LIBDIR=$(get_libdir) + sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die + sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js deps/npm/lib/npm.js || die + + # Avoid writing a depfile, not useful + sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die + + sed -i -e "/'-O3'/d" common.gypi || die + + # Avoid a test that I've only been able to reproduce from emerge. It doesnt + # seem sandbox related either (invoking it from a sandbox works fine). + # The issue is that no stdin handle is openened when asked for one. + # It doesn't really belong upstream , so it'll just be removed until someone + # with more gentoo-knowledge than me (jbergstroem) figures it out. + rm test/parallel/test-stdout-close-unref.js || die + + # debug builds. change install path, remove optimisations and override buildtype + if use debug; then + sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die + BUILDTYPE=Debug + fi + + default +} + +src_configure() { + local myarch="" + local myconf=( --shared-http-parser --shared-libuv --shared-nghttp2 --shared-openssl --shared-zlib ) + use npm || myconf+=( --without-npm ) + use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) + use snapshot && myconf+=( --with-snapshot ) + use ssl || myconf+=( --without-ssl ) + use debug && myconf+=( --debug ) + + case ${ABI} in + amd64) myarch="x64";; + arm) myarch="arm";; + arm64) myarch="arm64";; + ppc64) myarch="ppc64";; + x32) myarch="x32";; + x86) myarch="ia32";; + *) myarch="${ABI}";; + esac + + GYP_DEFINES="linux_use_gold_flags=0 + linux_use_bundled_binutils=0 + linux_use_bundled_gold=0" \ + "${PYTHON}" configure \ + --prefix="${EPREFIX}"/usr \ + --dest-cpu=${myarch} \ + $(use_with systemtap dtrace) \ + "${myconf[@]}" || die +} + +src_compile() { + emake -C out mksnapshot + pax-mark m "out/${BUILDTYPE}/mksnapshot" + emake -C out +} + +src_install() { + local LIBDIR="${ED}/usr/$(get_libdir)" + emake install DESTDIR="${D}" + pax-mark -m "${ED}"usr/bin/node + + # set up a symlink structure that node-gyp expects.. + dodir /usr/include/node/deps/{v8,uv} + dosym . /usr/include/node/src + for var in deps/{uv,v8}/include; do + dosym ../.. /usr/include/node/${var} + done + + if use doc; then + # Patch docs to make them offline readable + for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do + sed -i '/fonts.googleapis.com/ d' $i; + done + # Install docs! + dohtml -r "${S}"/doc/* + fi + + if use npm; then + dodir /etc/npm + + # Install bash completion for `npm` + # We need to temporarily replace default config path since + # npm otherwise tries to write outside of the sandbox + local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" + sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die + local tmp_npm_completion_file="$(emktemp)" + "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" + newbashcomp "${tmp_npm_completion_file}" npm + sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die + + # Move man pages + doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* + + # Clean up + rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die + rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die + + local find_exp="-or -name" + local find_name=() + for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ + ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ + "*.md" "*.markdown" "*.bat" "*.cmd"; do + find_name+=( ${find_exp} "${match}" ) + done + + # Remove various development and/or inappropriate files and + # useless docs of dependend packages. + find "${LIBDIR}"/node_modules \ + \( -type d -name examples \) -or \( -type f \( \ + -iname "LICEN?E*" \ + "${find_name[@]}" \ + \) \) -exec rm -rf "{}" \; + fi +} + +src_test() { + out/${BUILDTYPE}/cctest || die + "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die +} + +pkg_postinst() { + einfo "The global npm config lives in /etc/npm. This deviates slightly" + einfo "from upstream which otherwise would have it live in /usr/etc/." + einfo "" + einfo "Protip: When using node-gyp to install native modules, you can" + einfo "avoid having to download extras by doing the following:" + einfo "$ node-gyp --nodedir /usr/include/node " +} -- cgit v1.2.3