[gentoo-dev] Last rite: sys-apps/gpet

2022-12-06 Thread Naohiro Aota
Depends on gnome-base/gconf. Last release in 2011. See
https://bugs.gentoo.org/873880



[gentoo-dev] [PATCH v2 10/10] ruby-ng-gnome2.eclass: add support for 3.4.x

2020-05-03 Thread Naohiro Aota
Update SRC_URI since the primary release site is moved to github.

Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 12 +---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 7beb03e778c8..7cd789410b20 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -13,8 +13,8 @@
 # ruby-gnome2 since they share a very common installation procedure.
 
 case "${EAPI:-0}" in
-   6|7)
-   ;;
+   6)  inherit eapi7-ver ;;
+   7)  ;;
*)
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
;;
@@ -43,11 +43,17 @@ DEPEND="virtual/pkgconfig"
 ruby_add_bdepend "
dev-ruby/pkg-config
test? ( >=dev-ruby/test-unit-2 )"
-RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
 HOMEPAGE="https://ruby-gnome2.osdn.jp/;
 LICENSE="LGPL-2.1+"
 SLOT="0"
+if ver_test -ge "3.4.0"; then
+   SRC_URI="https://github.com/ruby-gnome/ruby-gnome/archive/${PV}.tar.gz 
-> ruby-gnome2-${PV}.tar.gz"
+   RUBY_S=ruby-gnome-${PV}/${RUBY_FAKEGEM_NAME}
+else
+   SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
+   RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
+fi
 
 ruby-ng-gnome2_all_ruby_prepare() {
# Avoid compilation of dependencies during test.
-- 
2.26.2




[gentoo-dev] [PATCH v2 08/10] ruby-ng-gnome2.eclass: support non-build packages

2020-05-03 Thread Naohiro Aota
Some ruby-gnome2 ebuild does not build C bindings, so there is no need to
call each_ruby_{configure,compile} and emake install of this eclass. Check
if "extconf.rb" and "Makefile" to decide what to do.

Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 14 ++
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 3ba1a11c21d0..7ffe57d1a9ff 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -53,6 +53,8 @@ SLOT="0"
 # @DESCRIPTION:
 # Run the configure script in the subbinding for each specific ruby target.
 each_ruby_configure() {
+   [[ -e extconf.rb ]] || return
+
${RUBY} extconf.rb || die "extconf.rb failed"
 }
 
@@ -60,6 +62,8 @@ each_ruby_configure() {
 # @DESCRIPTION:
 # Compile the C bindings in the subbinding for each specific ruby target.
 each_ruby_compile() {
+   [[ -e Makefile ]] || return
+
# We have injected --no-undefined in Ruby as a safety precaution
# against broken ebuilds, but the Ruby-Gnome bindings
# unfortunately rely on the lazy load of other extensions; see bug
@@ -76,11 +80,13 @@ each_ruby_compile() {
 # @DESCRIPTION:
 # Install the files in the subbinding for each specific ruby target.
 each_ruby_install() {
-   # Create the directories, or the package will create them as files.
-   local archdir=$(ruby_rbconfig_value "sitearchdir")
-   dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig
+   if [[ -e Makefile ]]; then
+   # Create the directories, or the package will create them as 
files.
+   local archdir=$(ruby_rbconfig_value "sitearchdir")
+   dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig
 
-   emake DESTDIR="${D}" install || die "make install failed"
+   emake DESTDIR="${D}" install || die "make install failed"
+   fi
 
each_fakegem_install
 }
-- 
2.26.2




[gentoo-dev] [PATCH v2 09/10] ruby-ng-gnome2.eclass: fold common all_ruby_prepare

2020-05-03 Thread Naohiro Aota
Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 22 ++
 1 file changed, 22 insertions(+)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 7ffe57d1a9ff..7beb03e778c8 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -49,6 +49,28 @@ HOMEPAGE="https://ruby-gnome2.osdn.jp/;
 LICENSE="LGPL-2.1+"
 SLOT="0"
 
+ruby-ng-gnome2_all_ruby_prepare() {
+   # Avoid compilation of dependencies during test.
+   if [[ -e test/run-test.rb ]]; then
+   sed -i -e '/system(/s/which make/true/' test/run-test.rb || die
+   fi
+
+   # work on top directory
+   pushd .. >/dev/null
+
+   # Avoid native installer
+   if [[ -e glib2/lib/mkmf-gnome.rb ]]; then
+   sed -i -e '/native-package-installer/ s:^:#:' \
+   -e '/^setup_homebrew/ s:^:#:' glib2/lib/mkmf-gnome.rb 
|| die
+   fi
+
+   popd >/dev/null
+}
+
+all_ruby_prepare() {
+   ruby-ng-gnome2_all_ruby_prepare
+}
+
 # @FUNCTION: each_ruby_configure
 # @DESCRIPTION:
 # Run the configure script in the subbinding for each specific ruby target.
-- 
2.26.2




[gentoo-dev] [PATCH v2 05/10] ruby-ng-gnome2.eclass: Use [[ instead of [

2020-05-03 Thread Naohiro Aota
Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 4f3f6011501b..ac112e006205 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -77,7 +77,7 @@ each_ruby_install() {
 # Install the files common to all ruby targets.
 all_ruby_install() {
for doc in ../AUTHORS ../NEWS ChangeLog README; do
-   [ -s "$doc" ] && dodoc $doc
+   [[ -s "$doc" ]] && dodoc $doc
done
if [[ -d sample ]]; then
insinto /usr/share/doc/${PF}
-- 
2.26.2




[gentoo-dev] [PATCH v2 06/10] ruby-ng-gnome2.eclass: add test dependency

2020-05-03 Thread Naohiro Aota
Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index ac112e006205..a1a84f3045ed 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -26,10 +26,13 @@ RUBY_FAKEGEM_TASK_DOC=""
 
 inherit ruby-fakegem
 
-IUSE=""
+IUSE="test"
+RESTRICT="!test? ( test )"
 
 DEPEND="virtual/pkgconfig"
-ruby_add_bdepend "dev-ruby/pkg-config"
+ruby_add_bdepend "
+   dev-ruby/pkg-config
+   test? ( >=dev-ruby/test-unit-2 )"
 RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
 HOMEPAGE="https://ruby-gnome2.osdn.jp/;
-- 
2.26.2




[gentoo-dev] [PATCH v2 07/10] ruby-ng-gnome2.eclass: implement common test code

2020-05-03 Thread Naohiro Aota
Fold common test code from runy-gnome2 ebuild to this eclass.

To support test under virtx, introduce RUBY_GNOME2_NEED_VIRTX variable.

Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 23 +++
 1 file changed, 23 insertions(+)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index a1a84f3045ed..3ba1a11c21d0 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -24,7 +24,17 @@ RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN#ruby-}}"
 RUBY_FAKEGEM_TASK_TEST=""
 RUBY_FAKEGEM_TASK_DOC=""
 
+# @ECLASS-VARIABLE: RUBY_GNOME2_NEED_VIRTX
+# @PRE_INHERIT
+# @DESCRIPTION:
+# If set to 'yes', the test is run with virtx. Set before inheriting this
+# eclass.
+: ${RUBY_GNOME2_NEED_VIRTX:="no"}
+
 inherit ruby-fakegem
+if [[ ${RUBY_GNOME2_NEED_VIRTX} == yes ]]; then
+   inherit virtualx
+fi
 
 IUSE="test"
 RESTRICT="!test? ( test )"
@@ -89,3 +99,16 @@ all_ruby_install() {
 
all_fakegem_install
 }
+
+# @FUNCTION: each_ruby_test
+# @DESCRIPTION:
+# Run the tests for this package.
+each_ruby_test() {
+   [[ -e test/run-test.rb ]] || return
+
+   if [[ ${RUBY_GNOME2_NEED_VIRTX} == yes ]]; then
+   virtx ${RUBY} test/run-test.rb
+   else
+   ${RUBY} test/run-test.rb || die
+   fi
+}
-- 
2.26.2




[gentoo-dev] [PATCH v2 04/10] ruby-ng-gnome2.eclass: drop subbinding variable

2020-05-03 Thread Naohiro Aota
Since we can set RUBY_S only from RUBY_FAKEGEM_NAME, we no longer need
$subbinding.

Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 42325ce4f33c..4f3f6011501b 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -28,11 +28,9 @@ inherit ruby-fakegem
 
 IUSE=""
 
-subbinding=${PN#ruby-}
-subbinding=${subbinding/-/_}
 DEPEND="virtual/pkgconfig"
 ruby_add_bdepend "dev-ruby/pkg-config"
-RUBY_S=ruby-gnome2-all-${PV}/${subbinding}
+RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
 HOMEPAGE="https://ruby-gnome2.osdn.jp/;
 LICENSE="LGPL-2.1+"
-- 
2.26.2




[gentoo-dev] [PATCH v2 03/10] ruby-ng-gnome2.eclass: fix LICENSE

2020-05-03 Thread Naohiro Aota
All ruby-gnome2 packages in the tree is now licensed under LGPL-2.1+.

Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 67a5d58fba58..42325ce4f33c 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -35,7 +35,7 @@ ruby_add_bdepend "dev-ruby/pkg-config"
 RUBY_S=ruby-gnome2-all-${PV}/${subbinding}
 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
 HOMEPAGE="https://ruby-gnome2.osdn.jp/;
-LICENSE="Ruby"
+LICENSE="LGPL-2.1+"
 SLOT="0"
 
 # @FUNCTION: each_ruby_configure
-- 
2.26.2




[gentoo-dev] [PATCH v2 02/10] ruby-ng-gnome2.eclass: drop support for

2020-05-03 Thread Naohiro Aota
All users of ruby-ng-gnome2 in the official tree are on EAPI=6, so we
can drop old EAPI support to reduce "if" branches and make the feature
updates simple.

Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 15 ---
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index a6e6fb089c8c..67a5d58fba58 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -6,14 +6,14 @@
 # Ruby herd 
 # @AUTHOR:
 # Author: Hans de Graaff 
-# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6
+# @SUPPORTED_EAPIS: 6 7
 # @BLURB: An eclass to simplify handling of various ruby-gnome2 parts.
 # @DESCRIPTION:
 # This eclass simplifies installation of the various pieces of
 # ruby-gnome2 since they share a very common installation procedure.
 
 case "${EAPI:-0}" in
-   0|1|2|3|4|5|6)
+   6|7)
;;
*)
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
@@ -24,22 +24,15 @@ RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN#ruby-}}"
 RUBY_FAKEGEM_TASK_TEST=""
 RUBY_FAKEGEM_TASK_DOC=""
 
-inherit ruby-fakegem multilib
+inherit ruby-fakegem
 
 IUSE=""
 
-# Define EPREFIX if needed
-has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
-
 subbinding=${PN#ruby-}
 subbinding=${subbinding/-/_}
 DEPEND="virtual/pkgconfig"
 ruby_add_bdepend "dev-ruby/pkg-config"
-if has "${EAPI:-0}" 0 1 2 3 ; then
-   S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding}
-else
-   RUBY_S=ruby-gnome2-all-${PV}/${subbinding}
-fi
+RUBY_S=ruby-gnome2-all-${PV}/${subbinding}
 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
 HOMEPAGE="https://ruby-gnome2.osdn.jp/;
 LICENSE="Ruby"
-- 
2.26.2




[gentoo-dev] [PATCH v2 01/10] ruby-ng-gnome2.eclass: drop support for 0.19.x

2020-05-03 Thread Naohiro Aota
The official tree no longer have ruby-gnome2 packages with 0.19.x. Drop
support for them.

Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 14 +-
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index ce52f27789a2..a6e6fb089c8c 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: ruby-ng-gnome2.eclass
@@ -24,7 +24,7 @@ RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN#ruby-}}"
 RUBY_FAKEGEM_TASK_TEST=""
 RUBY_FAKEGEM_TASK_DOC=""
 
-inherit ruby-fakegem multilib versionator
+inherit ruby-fakegem multilib
 
 IUSE=""
 
@@ -32,13 +32,9 @@ IUSE=""
 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
 
 subbinding=${PN#ruby-}
-if [ $(get_version_component_range "1-2") == "0.19" ]; then
-   subbinding=${subbinding/%2}
-else
-   subbinding=${subbinding/-/_}
-   DEPEND="virtual/pkgconfig"
-   ruby_add_bdepend "dev-ruby/pkg-config"
-fi
+subbinding=${subbinding/-/_}
+DEPEND="virtual/pkgconfig"
+ruby_add_bdepend "dev-ruby/pkg-config"
 if has "${EAPI:-0}" 0 1 2 3 ; then
S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding}
 else
-- 
2.26.2




Re: [gentoo-dev] [PATCH 2/9] ruby-ng-gnome2.eclass: drop support for

2020-02-17 Thread Naohiro Aota
On Sun, Feb 16, 2020 at 06:40:08AM +0100, Michał Górny wrote:
> On Sat, 2020-02-15 at 21:18 +0900, Naohiro Aota wrote:
> > Signed-off-by: Naohiro Aota 
> > ---
> >  eclass/ruby-ng-gnome2.eclass | 13 +++--
> >  1 file changed, 3 insertions(+), 10 deletions(-)
> > 
> > diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
> > index 4e3c30017e9b..8c8e0c8c0a50 100644
> > --- a/eclass/ruby-ng-gnome2.eclass
> > +++ b/eclass/ruby-ng-gnome2.eclass
> > @@ -6,14 +6,14 @@
> >  # Ruby herd 
> >  # @AUTHOR:
> >  # Author: Hans de Graaff 
> > -# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6
> > +# @SUPPORTED_EAPIS: 4 5 6
> >  # @BLURB: An eclass to simplify handling of various ruby-gnome2 parts.
> >  # @DESCRIPTION:
> >  # This eclass simplifies installation of the various pieces of
> >  # ruby-gnome2 since they share a very common installation procedure.
> >  
> >  case "${EAPI:-0}" in
> > -   0|1|2|3|4|5|6)
> > +   4|5|6)
> > ;;
> > *)
> > die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
> > 
> 
> It's really hard to review this if you provide only minimal context.

I wanted to drop old EAPIS and reduce conditional branches to set EPREFIX=
and S=.
> 
> I think you can drop multilib inherit for EAPI 6+.
> 
> Any reason not to support EAPI 7?

Ah, I somwhow misunderstood ruby-fakegem or something is not supporting
EAPI 7... I will rewrite this series with EAPI 6 and 7 along with fixing
other bash style mistakes.

Thanks,

> 
> -- 
> Best regards,
> Michał Górny
> 





[gentoo-dev] [PATCH 9/9] ruby-ng-gnome2.eclass: add support for 3.4.x

2020-02-15 Thread Naohiro Aota
Update SRC_URI since the primary release site is moved to github.

Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 4220dc9f2092..fa5530d36629 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -41,11 +41,17 @@ DEPEND="virtual/pkgconfig"
 ruby_add_bdepend "
dev-ruby/pkg-config
test? ( >=dev-ruby/test-unit-2 )"
-RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
 HOMEPAGE="https://ruby-gnome2.osdn.jp/;
 LICENSE="LGPL-2.1+"
 SLOT="0"
+if version_is_at_least "3.4.0"; then
+   SRC_URI="https://github.com/ruby-gnome/ruby-gnome/archive/${PV}.tar.gz 
-> ruby-gnome2-${PV}.tar.gz"
+   RUBY_S=ruby-gnome-${PV}/${RUBY_FAKEGEM_NAME}
+else
+   SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
+   RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
+fi
 
 ruby-ng-gnome2_all_ruby_prepare() {
# Avoid compilation of dependencies during test.
-- 
2.25.0




[gentoo-dev] [PATCH 7/9] ruby-ng-gnome2.eclass: support non-build packages

2020-02-15 Thread Naohiro Aota
Some ruby-gnome2 ebuild does not build C bindings, so there is no need to
call each_ruby_{configure,compile} and emake install of this eclass. Check
if "extconf.rb" and "Makefile" to decide what to do.

Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 14 ++
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 1cc3cdce4ce6..619a02d0d1d7 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -51,6 +51,8 @@ SLOT="0"
 # @DESCRIPTION:
 # Run the configure script in the subbinding for each specific ruby target.
 each_ruby_configure() {
+   test -e extconf.rb || return
+
${RUBY} extconf.rb || die "extconf.rb failed"
 }
 
@@ -58,6 +60,8 @@ each_ruby_configure() {
 # @DESCRIPTION:
 # Compile the C bindings in the subbinding for each specific ruby target.
 each_ruby_compile() {
+   test -e Makefile || return
+
# We have injected --no-undefined in Ruby as a safety precaution
# against broken ebuilds, but the Ruby-Gnome bindings
# unfortunately rely on the lazy load of other extensions; see bug
@@ -74,11 +78,13 @@ each_ruby_compile() {
 # @DESCRIPTION:
 # Install the files in the subbinding for each specific ruby target.
 each_ruby_install() {
-   # Create the directories, or the package will create them as files.
-   local archdir=$(ruby_rbconfig_value "sitearchdir")
-   dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig
+   if [ -e Makefile ]; then
+   # Create the directories, or the package will create them as 
files.
+   local archdir=$(ruby_rbconfig_value "sitearchdir")
+   dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig
 
-   emake DESTDIR="${D}" install || die "make install failed"
+   emake DESTDIR="${D}" install || die "make install failed"
+   fi
 
each_fakegem_install
 }
-- 
2.25.0




[gentoo-dev] [PATCH 8/9] ruby-ng-gnome2.eclass: fold common all_ruby_prepare

2020-02-15 Thread Naohiro Aota
Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 22 ++
 1 file changed, 22 insertions(+)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 619a02d0d1d7..4220dc9f2092 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -47,6 +47,28 @@ HOMEPAGE="https://ruby-gnome2.osdn.jp/;
 LICENSE="LGPL-2.1+"
 SLOT="0"
 
+ruby-ng-gnome2_all_ruby_prepare() {
+   # Avoid compilation of dependencies during test.
+   if [ -e test/run-test.rb ]; then
+   sed -i -e '/system(/s/which make/true/' test/run-test.rb || die
+   fi
+
+   # work on top directory
+   pushd .. >/dev/null
+
+   # Avoid native installer
+   if [ -e glib2/lib/mkmf-gnome.rb ]; then
+   sed -i -e '/native-package-installer/ s:^:#:' \
+   -e '/^setup_homebrew/ s:^:#:' glib2/lib/mkmf-gnome.rb 
|| die
+   fi
+
+   popd >/dev/null
+}
+
+all_ruby_prepare() {
+   ruby-ng-gnome2_all_ruby_prepare
+}
+
 # @FUNCTION: each_ruby_configure
 # @DESCRIPTION:
 # Run the configure script in the subbinding for each specific ruby target.
-- 
2.25.0




[gentoo-dev] [PATCH 5/9] ruby-ng-gnome2.eclass: add test dependency

2020-02-15 Thread Naohiro Aota
Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index edb420c9a3a8..dc48a53c58cd 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -29,7 +29,9 @@ inherit ruby-fakegem multilib versionator
 IUSE=""
 
 DEPEND="virtual/pkgconfig"
-ruby_add_bdepend "dev-ruby/pkg-config"
+ruby_add_bdepend "
+   dev-ruby/pkg-config
+   test? ( >=dev-ruby/test-unit-2 )"
 RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
 HOMEPAGE="https://ruby-gnome2.osdn.jp/;
-- 
2.25.0




[gentoo-dev] [PATCH 6/9] ruby-ng-gnome2.eclass: implement common test code

2020-02-15 Thread Naohiro Aota
Fold common test code from runy-gnome2 ebuild to this eclass.

To support test under virtx, introduce RUBY_GNOME2_NEED_VIRTX variable.

Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 22 ++
 1 file changed, 22 insertions(+)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index dc48a53c58cd..1cc3cdce4ce6 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -24,7 +24,16 @@ RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN#ruby-}}"
 RUBY_FAKEGEM_TASK_TEST=""
 RUBY_FAKEGEM_TASK_DOC=""
 
+# @ECLASS-VARIABLE: RUBY_GNOME2_NEED_VIRTX
+# @DESCRIPTION:
+# If set to 'yes', the test is run with virtx. Set before inheriting this
+# eclass.
+: ${RUBY_GNOME2_NEED_VIRTX:="no"}
+
 inherit ruby-fakegem multilib versionator
+if [[ ${RUBY_GNOME2_NEED_VIRTX} == yes ]]; then
+   inherit virtualx
+fi
 
 IUSE=""
 
@@ -88,3 +97,16 @@ all_ruby_install() {
 
all_fakegem_install
 }
+
+# @FUNCTION: each_ruby_test
+# @DESCRIPTION:
+# Run the tests for this package.
+each_ruby_test() {
+   test -e test/run-test.rb || return
+
+   if [[ ${RUBY_GNOME2_NEED_VIRTX} == yes ]]; then
+   virtx ${RUBY} test/run-test.rb || die
+   else
+   ${RUBY} test/run-test.rb || die
+   fi
+}
-- 
2.25.0




[gentoo-dev] [PATCH 4/9] ruby-ng-gnome2.eclass: drop subbinding variable

2020-02-15 Thread Naohiro Aota
Since we can set RUBY_S only from RUBY_FAKEGEM_NAME, we no longer need
$subbinding.

Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index e5c2ed193703..edb420c9a3a8 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -28,11 +28,9 @@ inherit ruby-fakegem multilib versionator
 
 IUSE=""
 
-subbinding=${PN#ruby-}
-subbinding=${subbinding/-/_}
 DEPEND="virtual/pkgconfig"
 ruby_add_bdepend "dev-ruby/pkg-config"
-RUBY_S=ruby-gnome2-all-${PV}/${subbinding}
+RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
 HOMEPAGE="https://ruby-gnome2.osdn.jp/;
 LICENSE="LGPL-2.1+"
-- 
2.25.0




[gentoo-dev] [PATCH 2/9] ruby-ng-gnome2.eclass: drop support for

2020-02-15 Thread Naohiro Aota
Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 13 +++--
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 4e3c30017e9b..8c8e0c8c0a50 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -6,14 +6,14 @@
 # Ruby herd 
 # @AUTHOR:
 # Author: Hans de Graaff 
-# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6
+# @SUPPORTED_EAPIS: 4 5 6
 # @BLURB: An eclass to simplify handling of various ruby-gnome2 parts.
 # @DESCRIPTION:
 # This eclass simplifies installation of the various pieces of
 # ruby-gnome2 since they share a very common installation procedure.
 
 case "${EAPI:-0}" in
-   0|1|2|3|4|5|6)
+   4|5|6)
;;
*)
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
@@ -28,18 +28,11 @@ inherit ruby-fakegem multilib versionator
 
 IUSE=""
 
-# Define EPREFIX if needed
-has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
-
 subbinding=${PN#ruby-}
 subbinding=${subbinding/-/_}
 DEPEND="virtual/pkgconfig"
 ruby_add_bdepend "dev-ruby/pkg-config"
-if has "${EAPI:-0}" 0 1 2 3 ; then
-   S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding}
-else
-   RUBY_S=ruby-gnome2-all-${PV}/${subbinding}
-fi
+RUBY_S=ruby-gnome2-all-${PV}/${subbinding}
 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
 HOMEPAGE="https://ruby-gnome2.osdn.jp/;
 LICENSE="Ruby"
-- 
2.25.0




[gentoo-dev] [PATCH 3/9] ruby-ng-gnome2.eclass: fix LICENSE

2020-02-15 Thread Naohiro Aota
All ruby-gnome2 packages in the tree is now licensed under LGPL-2.1+.

Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 8c8e0c8c0a50..e5c2ed193703 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -35,7 +35,7 @@ ruby_add_bdepend "dev-ruby/pkg-config"
 RUBY_S=ruby-gnome2-all-${PV}/${subbinding}
 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
 HOMEPAGE="https://ruby-gnome2.osdn.jp/;
-LICENSE="Ruby"
+LICENSE="LGPL-2.1+"
 SLOT="0"
 
 # @FUNCTION: each_ruby_configure
-- 
2.25.0




[gentoo-dev] [PATCH 1/9] ruby-ng-gnome2.eclass: drop support for 0.19.x

2020-02-15 Thread Naohiro Aota
The official tree no longer have ruby-gnome2 packages with 0.19.x. Drop
support for them.

Note: keep versionator inheritance because a later patch use it.

Signed-off-by: Naohiro Aota 
---
 eclass/ruby-ng-gnome2.eclass | 10 +++---
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index ce52f27789a2..4e3c30017e9b 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -32,13 +32,9 @@ IUSE=""
 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
 
 subbinding=${PN#ruby-}
-if [ $(get_version_component_range "1-2") == "0.19" ]; then
-   subbinding=${subbinding/%2}
-else
-   subbinding=${subbinding/-/_}
-   DEPEND="virtual/pkgconfig"
-   ruby_add_bdepend "dev-ruby/pkg-config"
-fi
+subbinding=${subbinding/-/_}
+DEPEND="virtual/pkgconfig"
+ruby_add_bdepend "dev-ruby/pkg-config"
 if has "${EAPI:-0}" 0 1 2 3 ; then
S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding}
 else
-- 
2.25.0




[gentoo-dev] Packages up for grabs

2018-07-13 Thread Naohiro Aota
Hello, all

These packages are now up for grabs. I no longer have
interest/hardware for them.

- app-laptop/batti
- app-laptop/pommed/metadata.xml
- media-video/v4l2loopback
- sys-libs/mtdev



Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability

2014-04-14 Thread Naohiro Aota
hasufell hasuf...@gentoo.org writes:

 na...@gentoo.org:
 fcaps.eclass is using group name 'root' which is not available on BSD
 system. Instead you can use 0, or $(id -g -n 0) if you'd prefer group
 name
 
 Index: fcaps.eclass
 ===
 RCS file: /var/cvsroot/gentoo-x86/eclass/fcaps.eclass,v
 retrieving revision 1.8
 diff -u -r1.8 fcaps.eclass
 --- fcaps.eclass 27 Jun 2013 01:18:57 -  1.8
 +++ fcaps.eclass 13 Apr 2014 00:16:44 -
 @@ -80,7 +80,7 @@
  
  # Process the user options first.
  local owner='root'
 -local group='root'
 +local group=$(id -g -n 0)
  local mode='4711'
  local caps_mode='711'
  
 

 # id -g -n 0
 id: 0: no such user

Strange. Is this busybox id? /usr/bin/id from both sys-apps/coreutils (Linux)
and sys-freebsd/freebsd-ubin (FreeBSD) just worked fine for me.



pgpyXH3LhItMt.pgp
Description: PGP signature


Re: [gentoo-dev] [PATCH] fcaps.eclass: Group name portability

2014-04-14 Thread Naohiro Aota
Diego Elio Pettenò flamee...@flameeyes.eu writes:

 I'm pretty sure we have an eclass function to get the name of the 0
 group. 

I can't find one... but found qmail.eclass is using exactly same method.

   export GROUP_ROOT=$(id -gn root)


pgpbPfsUeoSka.pgp
Description: PGP signature


Re: [gentoo-dev] Portage QOS

2014-01-11 Thread Naohiro Aota
Hi, Igor

LTHR lanthrus...@gmail.com writes:

 Portage QOS

 Hi All,

 What do you think about implementing this:

 http://forums.gentoo.org/viewtopic.php?p=7477494

 I've system design in my head and could write it down with the
 implementation details.
 Then may be we could all review it and get to something we all agree
 upon then I could 
 try getting a team and implement it.

 Just a brief question - does anyone know how many ebuilds are
 assembled world 
 wide each second?

This is quite impressive for me. I'm one who have been thinking like
this. For the purpose, I started a Web service named GenTwoo on May
2011: http://gentwoo.elisp.net/?locale=en

First a GenTwoo user login with Twitter account to the service and
installs a tiny script [1] on their Gentoo box. Then each time they run
emerge, the script collect what package is emerged, if the emerge is
succeed or failed, its elog output, and its build.log (only if the
emerge failed). These information is sent to my server and tweeted
periodically with #gentwoo hash tag so that you can see your friends are
heating their computer :-). [2] 

You can also browse:

- What all GenTwoo users emerge recently
  http://gentwoo.elisp.net/emerges?locale=en
- What one user emerge recently
  http://gentwoo.elisp.net/users/naota344?locale=en
- How a emerge failed (click error log tab)
  http://gentwoo.elisp.net/emerges/644259?locale=en
- Recent popular packages
  http://gentwoo.elisp.net/poppackage?locale=en
- How long dose it take to emerge a package (and its average)
  http://gentwoo.elisp.net/packages/app-text/poppler/?locale=en#0.24.5

Since I'm not much advertising the project, there are not so many active
users (and they are mostly Japanese): there are only 54 users who ever
emerged since Dec 2013. I'm not sure my GenTwoo project completely suit
your demand, but there are already many emerge record on my server
(645112 emerge records since the service started, and 22129 emerges
since Dec 2013). So if you are interested, you can start PortStat or
PortStatDEV implementation immediately with the emerge data I have. Or
you can also join GenTwoo if you feel it's better to start from
scratch. I'd appreciate it if you would join GenTwoo project and improve
it together ;-) There's also on going project to rewrite GenTwoo into a
package stat [3]

Anyway, feel free to ask me GenTwoo's implementation detail if you are
interested in it. I think I can help you write your design idea if you
start from scratch with your idea.

[1] https://github.com/naota/gentwoo/blob/master/client/gentwoo.py
[2] https://twitter.com/search?q=%23gentwoof=realtime
[3] https://github.com/gentoo/GenTwoo-backend/

Regards,


pgp077Esli1wS.pgp
Description: PGP signature


Re: [gentoo-dev] Orphaned packages

2012-06-28 Thread Naohiro Aota
Diego Elio Pettenò flamee...@gentoo.org writes:

 Hi all,

 I'm going to give up maintainership of a few packages simply because I'm
 not using it any longer and thus I can't care about them as much as I
 should:

 dev-util/perf

I take this one.

Regards,


pgprI0AlBjP3H.pgp
Description: PGP signature


[gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in media-gfx/graphviz: ChangeLog

2012-06-19 Thread Naohiro Aota
Samuli Suominen ssuomi...@gentoo.org writes:

 On 06/17/2012 10:12 AM, Naohiro Aota (naota) wrote:

 naota   12/06/17 07:12:19

Modified: ChangeLog
Log:
Add ~x86-fbsd. #419621

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

 Revision  ChangesPath
 1.261media-gfx/graphviz/ChangeLog

 file : 
 http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/ChangeLog?rev=1.261view=markup
 plain: 
 http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/ChangeLog?rev=1.261content-type=text/plain
 diff : 
 http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/graphviz/ChangeLog?r1=1.260r2=1.261

 Index: ChangeLog
 ===
 RCS file: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v
 retrieving revision 1.260
 retrieving revision 1.261
 diff -u -r1.260 -r1.261
 --- ChangeLog16 Jun 2012 16:39:58 -  1.260
 +++ ChangeLog17 Jun 2012 07:12:19 -  1.261
 @@ -1,6 +1,9 @@
   # ChangeLog for media-gfx/graphviz
   # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v 1.260 
 2012/06/16 16:39:58 ssuominen Exp $
 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/ChangeLog,v 1.261 
 2012/06/17 07:12:19 naota Exp $
 +
 +  17 Jun 2012; Naohiro Aota na...@gentoo.org graphviz-2.28.0.ebuild:
 +  Add ~x86-fbsd. #419621

 16 Jun 2012; Samuli Suominen ssuomi...@gentoo.org 
 graphviz-2.28.0.ebuild,
 metadata.xml:





 No change happened to the ebuild itself as it already had ~x86-fbsd
 (some faulty script?)

It was my fault. I misunderstood bug #419621's intentions to be adding
~x86-fbsd to graphviz. hm, then, should I remove the ChangeLog entry?


pgpIqp4cmtgU2.pgp
Description: PGP signature


Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in profiles/default/bsd: ChangeLog profile.bashrc

2012-05-02 Thread Naohiro Aota
Mike Gilbert flop...@gentoo.org writes:

 On Wed, May 2, 2012 at 11:08 AM, Samuli Suominen ssuomi...@gentoo.org wrote:

 Oops, something went wrong here. Please fix your terminal/editor encoding to
 unicode.


 I have two questions:

 1. Was this a repoman or echangelog generated entry?

I've first used echangelog to generate the log entry. But there was
another change on the ChangeLog file. So I moved my entry using vim.


pgpJctzL09g5m.pgp
Description: PGP signature


Re: [gentoo-dev] Gentoo CJK team empty, or anyone knows about ibus?

2012-04-02 Thread Naohiro Aota
Pacho Ramos pa...@gentoo.org writes:

   Will CC cjk team then to let them know you are interested to join (looks
   like there are four devs in cjk alias...)
 
 

 Any updates on this?

I didn't notice him been working to return dev, I sent him invitation
with ebuild-quizes :/. Then I got response from him asking me about CJK
docs to read or bugs to take a look at.

Jack,

I'm adding you to cjk alias and herd.xml. We don't have any special docs
to read nor bugs to solve as a team for now. But LDFLAGS bugs (334601,
334763, or such) would be good to start with, I think. And personaly,
I'd like to improve im-chooser support (i.e. confirm it working, fix any
bugs, and writing documentation)

Regards,


pgphbmEapckoS.pgp
Description: PGP signature


Re: [gentoo-dev] Gentoo CJK team empty, or anyone knows about ibus?

2012-03-18 Thread Naohiro Aota
Hi,

It is great to hear Jack is willing to join cjk herd. I can help Jack
working on cjk bugs. But, to be honest, I'm not familiar with recruiting
process so I need some devs to do or to help me on the recruiting.

Also I've read the Mentor Guide [1] and found your project lead must
be CC'd. I'm concerning about this project. Does he need some project
to join in? or is it just enough to join cjk herd?

[1] http://www.gentoo.org/proj/en/devrel/recruiters/mentor.xml

Pacho Ramos pa...@gentoo.org writes:

 El lun, 05-03-2012 a las 07:12 -0800, Jack Morgan escribió:

 I'd like to help with this and will take a look at the bug below. I'd
 like to be part of the cjk herd as well.
 
 On 03/05/12 05:56, Samuli Suominen wrote:
  Really need a reply on http://bugs.gentoo.org/405777 and nobody seems to
  be listening the cjk@ alias
  
  Should I just roll a dice and CC arch's?
 
 
 
 Thanks,
 

 Will CC cjk team then to let them know you are interested to join (looks
 like there are four devs in cjk alias...)


pgpCJlQBsCd1E.pgp
Description: PGP signature


Re: [gentoo-dev] Gentoo CJK team empty, or anyone knows about ibus?

2012-03-18 Thread Naohiro Aota
Ben yng...@gmail.com writes:

 On 19 March 2012 01:09, Pacho Ramos pa...@gentoo.org wrote:


 Will CC cjk team then to let them know you are interested to join (looks
 like there are four devs in cjk alias...)

 But none of them seem active...

hmm, Matuu and I'm working on some bugs one-by-one... Are there any bugs
you'd like to have some action? I'll taking a look at them if any.

Regards,


pgp17c6l4PeEe.pgp
Description: PGP signature


Re: [gentoo-dev] Packages up for grabs

2012-03-02 Thread Naohiro Aota
2012/3/2 Markos Chandras hwoar...@gentoo.org:
        app-laptop/batti

I took batti.

Regards,
Naohiro



Re: [gentoo-dev] Packages up for grabs due arfrever retirement

2011-09-15 Thread Naohiro Aota
I'll take dev-util/global

On Wed, Sep 14, 2011 at 3:56 AM, Pacho Ramos pa...@gentoo.org wrote:
 Due arfrever retirement the following packages need a new maintainer:

 dev-util/global
 net-irc/kvirc
 net-libs/neon
 net-libs/serf
 net-misc/cadaver


 Thanks for taking them