pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

How to rename Ruby-GNOME2 gem packages



Hi,

Recently the Ruby-GNOME2 Project has renamed their project name
to "Ruby-GNOME":
 https://github.com/ruby-gnome/ruby-gnome/commit/3f60f90ceabd778e302b13819b23ae2d49fba1db

In pkgsrc, all ruby-gnome2 gem packages are prefixed "ruby-gnome2-"
by historical reasons (gems were not used at initial import etc).

Now I would like to rename all ruby-gnome2 gem packages to simply
use own gem's name on the next (probably 3.3.8) ruby-gnome2 updates,
as per the pkgsrc guide:
 https://www.netbsd.org/docs/pkgsrc/submit.html#renaming-package

1) Rename PKGNAME in Makefile of the following packages
   (sorted by dependencies):

    devel/ruby-gnome2-glib
 -> devel/ruby-glib2

    devel/ruby-gnome2-atk
 -> devel/ruby-atk

    devel/ruby-gnome2-gobject-introspection
 -> devel/ruby-gobject-introspection

    devel/ruby-gnome2-gio
 -> devel/ruby-gio2

    graphics/ruby-gnome2-gdkpixbuf
 -> graphics/ruby-gdk_pixbuf2

    graphics/ruby-gnome2-cairo-gobject
 -> ruby-cairo-gobject

    devel/ruby-gnome2-pango
 -> devel/ruby-pango

    x11/ruby-gnome2-gtk
 -> x11/ruby-gtk2

    graphics/ruby-gnome2-gdk3
 -> graphics/ruby-gdk3

    x11/ruby-gnome2-gtk3
 -> x11/ruby-gtk3

    www/ruby-gnome2-webkit-gtk
 -> www/ruby-webkit-gtk

    www/ruby-gnome2-webkit-gtk2
 -> www/ruby-webkit-gtk2

    graphics/ruby-gnome2-clutter
 -> graphics/ruby-clutter

    graphics/ruby-gnome2-clutter-gdk
 -> graphics/ruby-clutter-gdk

    graphics/ruby-gnome2-clutter-gtk
 -> graphics/ruby-clutter-gtk

    graphics/ruby-gnome2-rsvg
 -> graphics/ruby-rsvg

    multimedia/ruby-gnome2-gstreamer
 -> multimedia/ruby-gstreamer

    multimedia/ruby-gnome2-clutter-gstreamer
 -> multimedia/ruby-clutter-gstreamer

    print/ruby-gnome2-poppler
 -> print/ruby-poppler

    x11/ruby-gnome2-gtksourceview2
 -> x11/ruby-gtksoureview2

    x11/ruby-gnome2-gtksourceview3
 -> x11/ruby-gtksourceview3

    x11/ruby-gnome2-vte
 -> x11/ruby-vte
 
    meta-pkgs/ruby-gnome2
 -> meta-pkgs/ruby-gnome

2) Remove all buildlink3.mk files (I guess gem doesn't require it)
   and replace references in Makefiles with
   "DEPENDS+= ${RUBY_PKGPREFIX}-foo>=${VERSION}:...":

  devel/ruby-gnome2-gio/buildlink3.mk
  devel/ruby-gnome2-glib/buildlink3.mk
  devel/ruby-gnome2-gobject-introspection/buildlink3.mk
  devel/ruby-gnome2-pango/buildlink3.mk
  graphics/ruby-gnome2-gdk3/buildlink3.mk
  x11/ruby-gnome2-gtk/buildlink3.mk
  x11/ruby-gnome2-gtk3/buildlink3.mk

3) Mark SUPERSEDES in each Makefile

4) Update dependencies (and replace buildlink3.mk references)
   of packages shown in "Required by":

 - games/ruby-squib
   ruby-pango, ruby-rsvg, ruby-gobject-introspection, ruby-gio2

 - graphics/rabbit
   ruby-gtk2, ruby-rsvg, ruby-poppler

 - mail/milter-manager
   ruby-glib2

 - net/mikutter
   ruby-gtk2

5) Rename HOMEPAGE etc. in other Ruby-GNOME2 project packages
 - devel/ruby-pkg-config
 - devel/ruby-native-package-installer

I'm not sure how often such large renames were done,
but is there any other necessary changes on renaming?
Or simply should we keep old names?
(Note I didn't bother to check pkgsrc-wip)

Any comments are appreciated.  Thanks,

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index