[perl-Glib] Organize .pm files into lib/



commit 08b1480de68e59d6faf9b641e68ae696569b914c
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date:   Mon Apr 12 22:35:50 2010 +0200

    Organize .pm files into lib/

 MANIFEST                                   |   14 ++++++----
 Makefile.PL                                |   36 ++++++++++++++--------------
 Glib.pm => lib/Glib.pm                     |    0
 CodeGen.pm => lib/Glib/CodeGen.pm          |    0
 GenPod.pm => lib/Glib/GenPod.pm            |    0
 MakeHelper.pm => lib/Glib/MakeHelper.pm    |    0
 Subclass.pm => lib/Glib/Object/Subclass.pm |    0
 ParseXSDoc.pm => lib/Glib/ParseXSDoc.pm    |    0
 8 files changed, 26 insertions(+), 24 deletions(-)
---
diff --git a/MANIFEST b/MANIFEST
index 79ba4c5..75cef7d 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,19 +1,16 @@
 apidoc.pl
 AUTHORS
 ChangeLog.pre-git
-CodeGen.pm
 copyright.pod
 devel.pod
 doctypes
 GBookmarkFile.xs
 GBoxed.xs
 GClosure.xs
-GenPod.pm
 GError.xs
 GIOChannel.xs
 GKeyFile.xs
 Glib.exports
-Glib.pm
 Glib.xs
 GLog.xs
 GMainLoop.xs
@@ -29,16 +26,20 @@ GSignal.xs
 GType.xs
 GUtils.xs
 GValue.xs
+lib/Glib.pm
+lib/Glib/CodeGen.pm
+lib/Glib/GenPod.pm
+lib/Glib/MakeHelper.pm
+lib/Glib/Object/Subclass.pm
+lib/Glib/ParseXSDoc.pm
 LICENSE
 Makefile.PL
-MakeHelper.pm
 MANIFEST
 MANIFEST.SKIP
 NEWS
-ParseXSDoc.pm
+perl-Glib.doap
 perl-Glib.spec.in
 README
-Subclass.pm
 t/1.t
 t/2.t
 t/3.t
@@ -65,6 +66,7 @@ t/signal_emission_hooks.t
 t/signal_marshal.t
 t/signal_query.t
 t/tied_definedness.t
+t/tied_set_property.t
 TODO
 typemap
 xsapi.pod.foot
diff --git a/Makefile.PL b/Makefile.PL
index 7259110..5b4707d 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -50,7 +50,7 @@ unless (eval "use ExtUtils::Depends '$build_reqs{'perl-ExtUtils-Depends'}';"
 
 # client modules may use Glib::MakeHelper -- he's not installed at this
 # point, so we have to require him directly.
-require 'MakeHelper.pm';
+require 'lib/Glib/MakeHelper.pm';
 
 mkdir 'build', 0777;
 
@@ -93,22 +93,22 @@ if (ExtUtils::PkgConfig->atleast_version ('glib-2.0', '2.12.0')) {
 }
 
 our %pm_files = (
-     'Glib.pm'         => '$(INST_LIBDIR)/Glib.pm',
-     'Subclass.pm'     => '$(INST_LIBDIR)/Glib/Object/Subclass.pm',
-     'ParseXSDoc.pm'   => '$(INST_LIBDIR)/Glib/ParseXSDoc.pm',
-     'GenPod.pm'       => '$(INST_LIBDIR)/Glib/GenPod.pm',
-     'CodeGen.pm'      => '$(INST_LIBDIR)/Glib/CodeGen.pm',
-     'MakeHelper.pm'   => '$(INST_LIBDIR)/Glib/MakeHelper.pm',
-     'devel.pod'       => '$(INST_LIBDIR)/Glib/devel.pod',
+     'lib/Glib.pm'                 => '$(INST_LIBDIR)/Glib.pm',
+     'lib/Glib/Object/Subclass.pm' => '$(INST_LIBDIR)/Glib/Object/Subclass.pm',
+     'lib/Glib/ParseXSDoc.pm'      => '$(INST_LIBDIR)/Glib/ParseXSDoc.pm',
+     'lib/Glib/GenPod.pm'          => '$(INST_LIBDIR)/Glib/GenPod.pm',
+     'lib/Glib/CodeGen.pm'         => '$(INST_LIBDIR)/Glib/CodeGen.pm',
+     'lib/Glib/MakeHelper.pm'      => '$(INST_LIBDIR)/Glib/MakeHelper.pm',
+     'devel.pod'                   => '$(INST_LIBDIR)/Glib/devel.pod',
 );
 our %pod_files = (
-   'Glib.pm'         => '$(INST_MAN3DIR)/Glib.$(MAN3EXT)',
-   'Subclass.pm'     => '$(INST_MAN3DIR)/Glib::Object::Subclass.$(MAN3EXT)',
-   'ParseXSDoc.pm'   => '$(INST_MAN3DIR)/Glib::ParseXSDoc.$(MAN3EXT)',
-   'GenPod.pm'       => '$(INST_MAN3DIR)/Glib::GenPod.$(MAN3EXT)',
-   'CodeGen.pm'      => '$(INST_MAN3DIR)/Glib::CodeGen.$(MAN3EXT)',
-   'MakeHelper.pm'   => '$(INST_MAN3DIR)/Glib::MakeHelper.$(MAN3EXT)',
-   'devel.pod'       => '$(INST_MAN3DIR)/Glib::devel.$(MAN3EXT)',
+   'lib/Glib.pm'                 => '$(INST_MAN3DIR)/Glib.$(MAN3EXT)',
+   'lib/Glib/Object/Subclass.pm' => '$(INST_MAN3DIR)/Glib::Object::Subclass.$(MAN3EXT)',
+   'lib/Glib/ParseXSDoc.pm'      => '$(INST_MAN3DIR)/Glib::ParseXSDoc.$(MAN3EXT)',
+   'lib/Glib/GenPod.pm'          => '$(INST_MAN3DIR)/Glib::GenPod.$(MAN3EXT)',
+   'lib/Glib/CodeGen.pm'         => '$(INST_MAN3DIR)/Glib::CodeGen.$(MAN3EXT)',
+   'lib/Glib/MakeHelper.pm'      => '$(INST_MAN3DIR)/Glib::MakeHelper.$(MAN3EXT)',
+   'devel.pod'                        => '$(INST_MAN3DIR)/Glib::devel.$(MAN3EXT)',
    '$(INST_LIB)/$(FULLEXT)/xsapi.pod' => '$(INST_MAN3DIR)/Glib::xsapi.$(MAN3EXT)',
    Glib::MakeHelper->do_pod_files (@xs_files),
 );
@@ -159,8 +159,8 @@ require 'Glib.exports';
 
 WriteMakefile(
     NAME		=> 'Glib',
-    VERSION_FROM	=> 'Glib.pm', # finds $VERSION
-    ABSTRACT_FROM	=> 'Glib.pm', # retrieve abstract from module
+    VERSION_FROM	=> 'lib/Glib.pm', # finds $VERSION
+    ABSTRACT_FROM	=> 'lib/Glib.pm', # retrieve abstract from module
     PREREQ_PM		=> \%PREREQ_PM,
     XSPROTOARG		=> '-noprototypes',
     MAN3PODS		=> $glib ? \%pod_files : {},
@@ -210,7 +210,7 @@ __EOW__
 # rule to build the documentation
 sub MY::postamble
 {
-	require 'MakeHelper.pm';
+	require 'lib/Glib/MakeHelper.pm';
 	# $glib will be undefined if any of our dependencies couldn't be found;
 	# don't do anything in this case.
 	return unless defined $glib;
diff --git a/Glib.pm b/lib/Glib.pm
similarity index 100%
rename from Glib.pm
rename to lib/Glib.pm
diff --git a/CodeGen.pm b/lib/Glib/CodeGen.pm
similarity index 100%
rename from CodeGen.pm
rename to lib/Glib/CodeGen.pm
diff --git a/GenPod.pm b/lib/Glib/GenPod.pm
similarity index 100%
rename from GenPod.pm
rename to lib/Glib/GenPod.pm
diff --git a/MakeHelper.pm b/lib/Glib/MakeHelper.pm
similarity index 100%
rename from MakeHelper.pm
rename to lib/Glib/MakeHelper.pm
diff --git a/Subclass.pm b/lib/Glib/Object/Subclass.pm
similarity index 100%
rename from Subclass.pm
rename to lib/Glib/Object/Subclass.pm
diff --git a/ParseXSDoc.pm b/lib/Glib/ParseXSDoc.pm
similarity index 100%
rename from ParseXSDoc.pm
rename to lib/Glib/ParseXSDoc.pm



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]