a package infrastructure for Perl/CPAN modules
cover a package infrastructure for Perl/CPAN modules
This patch set contains 3 parts :
1) the Perl/CPAN infrastructure
2) some cleanup : cpanminus, ...
3) few new packages using this infrastructure
Note: Perl/CPAN packages could be generated by a script (see 2/12 & 8/12)
Francois Perrad (12):
perl: new infrastructure
cpan: a home for Perl modules
cpanminus: remove it
perl: remove useless patch
qemu: add a Config.in.host
libxml-parser-perl: move and refactor with perl infrastructure
host-libmodule-build-perl: new package
manual: adding packages perl
libcurses-perl: new package
libnet-ssleay-perl: new package
libmoose-perl: new package
libxml-libxml-perl: new package
Config.in | 7 + docs/manual/adding-packages-perl.txt | 91 +++ docs/manual/adding-packages.txt | 2 + package/Config.in | 3 +- package/Config.in.host | 1 + package/Makefile.in | 9 +- package/cpan/Config.in | 5 + package/cpan/cpan.mk | 1 + package/cpan/libcurses-perl/Config.in | 6 + package/cpan/libcurses-perl/libcurses-perl.mk | 15 + package/cpan/libmodule-build-perl/Config.in | 6 + .../libmodule-build-perl/libmodule-build-perl.mk | 16 + package/cpan/libmoose-perl/libmoose-perl.mk | 18 + package/cpan/libnet-ssleay-perl/Config.in | 6 + .../cpan/libnet-ssleay-perl/libnet-ssleay-perl.mk | 16 + package/cpan/libxml-libxml-perl/Config.in | 9 + .../cpan/libxml-libxml-perl/libxml-libxml-perl.mk | 22 + package/cpan/libxml-parser-perl/Config.in | 9 + .../cpan/libxml-parser-perl/libxml-parser-perl.mk | 19 + package/cpanminus/Config.in | 40 -- package/cpanminus/cpanminus.mk | 47 -- package/intltool/intltool.mk | 4 +- package/libxml-parser-perl/Config.in | 11 - package/libxml-parser-perl/libxml-parser-perl.mk | 35 -- package/metacity/metacity.mk | 3 + package/perl/perl-fix-Module-Build.patch | 16 - package/pkg-perl.mk | 220 +++++++ package/qemu/Config.in.host | 10 + scancpan | 632 ++++++++++++++++++++ 29 files changed, 1120 insertions(+), 159 deletions(-) create mode 100644 docs/manual/adding-packages-perl.txt create mode 100644 package/cpan/Config.in create mode 100644 package/cpan/cpan.mk create mode 100644 package/cpan/libcurses-perl/Config.in create mode 100644 package/cpan/libcurses-perl/libcurses-perl.mk create mode 100644 package/cpan/libmodule-build-perl/Config.in create mode 100644 package/cpan/libmodule-build-perl/libmodule-build-perl.mk create mode 100644 package/cpan/libmoose-perl/libmoose-perl.mk create mode 100644 package/cpan/libnet-ssleay-perl/Config.in create mode 100644 package/cpan/libnet-ssleay-perl/libnet-ssleay-perl.mk create mode 100644 package/cpan/libxml-libxml-perl/Config.in create mode 100644 package/cpan/libxml-libxml-perl/libxml-libxml-perl.mk create mode 100644 package/cpan/libxml-parser-perl/Config.in create mode 100644 package/cpan/libxml-parser-perl/libxml-parser-perl.mk delete mode 100644 package/cpanminus/Config.in delete mode 100644 package/cpanminus/cpanminus.mk delete mode 100644 package/libxml-parser-perl/Config.in delete mode 100644 package/libxml-parser-perl/libxml-parser-perl.mk delete mode 100644 package/perl/perl-fix-Module-Build.patch create mode 100644 package/pkg-perl.mk create mode 100644 package/qemu/Config.in.host create mode 100755 scancpan
Signature · 1 line
1.7.9.5
PATCH 1/12 perl: new infrastructure
--- package/Makefile.in | 1 + package/pkg-perl.mk | 220 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 221 insertions(+) create mode 100644 package/pkg-perl.mk
package/Makefile.in +1 -0
@@ -363,4 +363,5 @@ include package/pkg-utils.mk include package/pkg-download.mk include package/pkg-autotools.mk include package/pkg-cmake.mk +include package/pkg-perl.mk include package/pkg-generic.mk
package/pkg-perl.mk new file +220 -0
220 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 2/12 cpan: a home for Perl modules
In reply to Francois Perrad--- Config.in | 7 + package/Config.in | 1 + package/cpan/cpan.mk | 1 + scancpan | 629 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 638 insertions(+) create mode 100644 package/cpan/Config.in create mode 100644 package/cpan/cpan.mk create mode 100755 scancpan
Config.in +7 -0
@@ -207,6 +207,13 @@ config BR2_DEBIAN_MIRROR endif +config BR2_CPAN_MIRROR + string "CPAN mirror" + default "http://search.cpan.org/CPAN" + help + CPAN has multiple software mirrors scattered around the world. + The following allows you to select your preferred mirror. + endmenu config BR2_JLEVEL
package/Config.in +1 -0
@@ -382,6 +382,7 @@ source "package/perl/Config.in" if BR2_PACKAGE_PERL menu "Perl libraries/modules" source "package/cpanminus/Config.in" +source "package/cpan/Config.in" endmenu endif source "package/php/Config.in"
package/cpan/Config.in new file +0 -0
package/cpan/cpan.mk new file +1 -0
@@ -0,0 +1 @@ +include package/cpan/*/*.mk
scancpan new file +629 -0
629 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 2/12 cpan: a home for Perl modules
Dear Francois Perrad,
Quoted 7 lines · Francois Perrad
Signed-off-by Francois Perrad <[email protected]>--- Config.in | 7 + package/Config.in | 1 + package/cpan/cpan.mk | 1 + scancpan | 629 ++++++++++++++++++++++++++++++++++++++++++++++++++
We quite certainly want this script somewhere under support/scripts/, in a separate patch from the one adding the BR2_CPAN_MIRROR option and the package/cpan/ directory. And also, the script needs a comment at the beginning that explains what it is, what it does, how to use it, and what is the license of the script (because I see it reuses some existing code, so we have to figure out if the license of this code is compatible with the Buildroot license).
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/12 cpan: a home for Perl modules
2013/11/20 Thomas Petazzoni <[email protected]>:
Quoted 11 lines
Dear Francois Perrad,
Quoted 7 lines · Francois Perrad
Signed-off-by Francois Perrad <[email protected]>--- Config.in | 7 + package/Config.in | 1 + package/cpan/cpan.mk | 1 + scancpan | 629 ++++++++++++++++++++++++++++++++++++++++++++++++++
Quoted 8 lines
We quite certainly want this script somewhere under support/scripts/, in a separate patch from the one adding the
BR2_CPAN_MIRRORoption and the package/cpan/ directory. And also, the script needs a comment at the beginning that explains what it is, what it does, how to use it, and what is the license of the script (because I see it reuses some existing code, so we have to figure out if the license of this code is compatible with the Buildroot license).
This script was "fatpacked", so the beginning is a bundle of dependencies. The initial part that I wrote, is at the end and contains an Usage description.
Fran?ois
Quoted 9 lines
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH 3/12 cpanminus: remove it
In reply to Francois Perrad--- package/Config.in | 1 - package/cpanminus/Config.in | 40 ---------------------------------- package/cpanminus/cpanminus.mk | 47 ---------------------------------------- 3 files changed, 88 deletions(-) delete mode 100644 package/cpanminus/Config.in delete mode 100644 package/cpanminus/cpanminus.mk
package/Config.in +0 -1
@@ -381,7 +381,6 @@ source "package/nodejs/Config.in" source "package/perl/Config.in" if BR2_PACKAGE_PERL menu "Perl libraries/modules" -source "package/cpanminus/Config.in" source "package/cpan/Config.in" endmenu endif
package/cpanminus/Config.in deleted +0 -40
@@ -1,40 +0,0 @@ -config BR2_PACKAGE_CPANMINUS - bool "cpanminus" - # Requires host-qemu, which cannot work properly due to kernel - # headers mismatch between the build environment and the - # target. - depends on BR2_BROKEN - help - cpanminus is a script to get, unpack, build and install Perl modules - from CPAN. - - Why? It's dependency free, requires zero configuration, and stands - alone. When running, it requires only 10MB of RAM. - - http://github.com/miyagawa/cpanminus - -if BR2_PACKAGE_CPANMINUS - -config BR2_PACKAGE_CPANMINUS_MIRROR - string "mirror" - help - Specifies the base URL for the CPAN mirror to use, - such as http://cpan.cpantesters.org/. - -config BR2_PACKAGE_CPANMINUS_MODULES - string "Perl modules from CPAN" - default "Curses::UI" - help - List of space-separated Perl modules to install from CPAN. - - Examples: Try::Tiny Dancer YAML Moo - - Install the listed modules and their dependencies. - -config BR2_PACKAGE_CPANMINUS_NATIVE_DEPENDENCIES - string "native dependencies" - default "ncurses" - help - Some XS modules require native libraries. - -endif
package/cpanminus/cpanminus.mk deleted +0 -47
47 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 4/12 perl: remove useless patch
In reply to Francois Perradafter the removal of cpanminus
--- package/perl/perl-fix-Module-Build.patch | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 package/perl/perl-fix-Module-Build.patch
package/perl/perl-fix-Module-Build.patch deleted +0 -16
@@ -1,16 +0,0 @@ - -Signed-off-by: Francois Perrad <[email protected]> - -Index: b/cpan/Module-Build/lib/Module/Build/Base.pm -=================================================================== ---- a/cpan/Module-Build/lib/Module/Build/Base.pm -+++ b/cpan/Module-Build/lib/Module/Build/Base.pm -@@ -460,7 +460,7 @@ - my $proto = shift; - my $c = ref($proto) ? $proto->{config} : 'Module::Build::Config'; - -- my $perl = $^X; -+ my $perl = $ENV{RUN_PERL} || $^X; - my $perl_basename = File::Basename::basename($perl); - - my @potential_perls;
Signature · 1 line
1.7.9.5
PATCH 5/12 qemu: add a Config.in.host
In reply to Francois Perradafter the removal of cpanminus
--- package/Config.in.host | 1 + package/qemu/Config.in.host | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 package/qemu/Config.in.host
package/Config.in.host +1 -0
@@ -10,6 +10,7 @@ source "package/lpc3250loader/Config.in.host" source "package/mtools/Config.in.host" source "package/omap-u-boot-utils/Config.in.host" source "package/openocd/Config.in.host" +source "package/qemu/Config.in.host" source "package/sam-ba/Config.in.host" source "package/sunxi-tools/Config.in.host" source "package/uboot-tools/Config.in.host"
package/qemu/Config.in.host new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_PACKAGE_HOST_QEMU + bool "host qemu" + help + QEMU is a generic and open source machine emulator and virtualizer. + + In user mode emulation, QEMU runs single cross-compiled programs. + Fast cross-compilation and cross-debugging are the main targets + for user-mode emulation. + + http://qemu.org/
Signature · 1 line
1.7.9.5
PATCH 5/12 qemu: add a Config.in.host
Dear Francois Perrad,
Quoted 8 lines · Francois Perrad
after the removal of cpanminus
Signed-off-by Francois Perrad <[email protected]>--- package/Config.in.host | 1 + package/qemu/Config.in.host | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 package/qemu/Config.in.host
Adding Yann in Cc on this one. Until now, host-qemu was only used by cpanminus, so if cpanminus is removed, I don't see the point of keeping host-qemu. But I know Yann was interested in it, so it would be good to understand what's the plan and needs around host-qemu after cpanminus removal.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 5/12 qemu: add a Config.in.host
2013/11/20 Thomas Petazzoni <[email protected]>:
Quoted 12 lines
Dear Francois Perrad,
Quoted 8 lines · Francois Perrad
after the removal of cpanminus
Signed-off-by Francois Perrad <[email protected]>--- package/Config.in.host | 1 + package/qemu/Config.in.host | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 package/qemu/Config.in.host
Quoted 6 lines
Adding Yann in Cc on this one. Until now, host-qemu was only used by cpanminus, so if cpanminus is removed, I don't see the point of keeping host-qemu. But I know Yann was interested in it, so it would be good to understand what's the plan and needs around host-qemu after cpanminus removal.
Now, host-qemu-user is required by no package.
But it remains a useful tool for a developer which could run it manually.
Fran?ois
Quoted 9 lines
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH 6/12 libxml-parser-perl: move and refactor with perl infrastructure
In reply to Francois Perrad(used by host-intltool and metacity)
--- package/Config.in | 1 - package/Makefile.in | 8 ++--- package/cpan/Config.in | 1 + package/cpan/libxml-parser-perl/Config.in | 9 +++++ .../cpan/libxml-parser-perl/libxml-parser-perl.mk | 19 +++++++++++ package/intltool/intltool.mk | 4 +-- package/libxml-parser-perl/Config.in | 11 ------ package/libxml-parser-perl/libxml-parser-perl.mk | 35 -------------------- package/metacity/metacity.mk | 3 ++ 9 files changed, 36 insertions(+), 55 deletions(-) create mode 100644 package/cpan/libxml-parser-perl/Config.in create mode 100644 package/cpan/libxml-parser-perl/libxml-parser-perl.mk delete mode 100644 package/libxml-parser-perl/Config.in delete mode 100644 package/libxml-parser-perl/libxml-parser-perl.mk
package/Config.in +0 -1
@@ -586,7 +586,6 @@ source "package/json-c/Config.in" source "package/json-glib/Config.in" source "package/libjson/Config.in" source "package/libroxml/Config.in" -source "package/libxml-parser-perl/Config.in" source "package/libxml2/Config.in" source "package/libxmlpp/Config.in" source "package/libxslt/Config.in"
package/Makefile.in +2 -6
@@ -241,11 +241,9 @@ TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \ LDFLAGS="$(TARGET_LDFLAGS)" \ FCFLAGS="$(TARGET_FCFLAGS)" \ PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \ - PERLLIB="$(HOST_DIR)/usr/lib/perl" \ STAGING_DIR="$(STAGING_DIR)" -TARGET_MAKE_ENV=PATH=$(TARGET_PATH) \ - PERLLIB="$(HOST_DIR)/usr/lib/perl" +TARGET_MAKE_ENV=PATH=$(TARGET_PATH) HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \ AR="$(HOSTAR)" \
@@ -265,15 +263,13 @@ HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \ PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \ PKG_CONFIG_SYSROOT_DIR="/" \ PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig:$(HOST_DIR)/usr/share/pkgconfig" \ - PERLLIB="$(HOST_DIR)/usr/lib/perl" \ LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" HOST_MAKE_ENV=PATH=$(HOST_PATH) \ LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \ PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \ PKG_CONFIG_SYSROOT_DIR="/" \ - PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig" \ - PERLLIB="$(HOST_DIR)/usr/lib/perl" + PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig" ################################################################################
package/cpan/Config.in +1 -0
@@ -0,0 +1 @@ +source "package/cpan/libxml-parser-perl/Config.in"
package/cpan/libxml-parser-perl/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_LIBXML_PARSER_PERL + bool "libxml-parser-perl" + select BR2_PACKAGE_EXPAT + # Hide from configuration as we only support the host package + # for the moment + depends on BR2_HOST_ONLY + help + A perl module for parsing XML documents +
package/cpan/libxml-parser-perl/libxml-parser-perl.mk new file +19 -0
@@ -0,0 +1,19 @@ +################################################################################ +# +# libxml-parser-perl +# +################################################################################ + +LIBXML_PARSER_PERL_VERSION = 2.41 +LIBXML_PARSER_PERL_AUTHOR = TODDR +LIBXML_PARSER_PERL_SOURCE = XML-Parser-$(LIBXML_PARSER_PERL_VERSION).tar.gz +LIBXML_PARSER_PERL_SITE = $(BR2_CPAN_MIRROR)/authors/id/T/TO/TODDR/ +#LIBXML_PARSER_PERL_DEPENDENCIES = perl libwww-perl expat +HOST_LIBXML_PARSER_PERL_DEPENDENCIES = host-expat +LIBXML_PARSER_PERL_LICENSE = perl_5 + +HOST_LIBXML_PARSER_PERL_CONF_OPT += EXPATLIBPATH=$(HOST_DIR)/usr/lib +HOST_LIBXML_PARSER_PERL_CONF_OPT += EXPATINCPATH=$(HOST_DIR)/usr/include + +#$(eval $(perl-package)) +$(eval $(host-perl-package))
package/intltool/intltool.mk +2 -2
@@ -10,8 +10,8 @@ INTLTOOL_LICENSE = GPLv2+ INTLTOOL_LICENSE_FILES = COPYING HOST_INTLTOOL_DEPENDENCIES = host-gettext host-libxml-parser-perl -HOST_INTLTOOL_CONF_OPT = \ - PERLLIB=$(HOST_DIR)/usr/lib/perl +HOST_INTLTOOL_CONF_ENV = \ + PERL5LIB=$(HOST_DIR)/usr/lib/perl5/$(shell perl -MConfig -e "print Config->{archname}") $(eval $(autotools-package)) $(eval $(host-autotools-package))
package/libxml-parser-perl/Config.in deleted +0 -11
@@ -1,11 +0,0 @@ -config BR2_PACKAGE_LIBXML_PARSER_PERL - bool "libxml-parser-perl" - select BR2_PACKAGE_EXPAT - # Hide from configuration as we only support the host package - # for the moment - depends on BR2_HOST_ONLY - help - The Perl XML::Parser module. - - http://www.cpan.org/modules/by-module/XML/ -
package/libxml-parser-perl/libxml-parser-perl.mk deleted +0 -35
@@ -1,35 +0,0 @@ -################################################################################ -# -# libxml-parser-perl -# -################################################################################ - -LIBXML_PARSER_PERL_VERSION = 2.36 -LIBXML_PARSER_PERL_SOURCE = XML-Parser-$(LIBXML_PARSER_PERL_VERSION).tar.gz -LIBXML_PARSER_PERL_SITE = http://www.cpan.org/modules/by-module/XML/ - -LIBXML_PARSER_PERL_DEPENDENCIES = expat - -define HOST_LIBXML_PARSER_PERL_CONFIGURE_CMDS - (cd $(@D) ; \ - $(HOST_CONFIGURE_OPTS) perl Makefile.PL \ - PREFIX=$(HOST_DIR)/usr \ - EXPATLIBPATH=$(HOST_DIR)/usr/lib \ - EXPATINCPATH=$(HOST_DIR)/usr/include \ - INSTALLDIRS=site \ - INSTALLSITELIB=$(HOST_DIR)/usr/lib/perl \ - INSTALLSITEARCH=$(HOST_DIR)/usr/lib/perl \ - USE_MM_LD_RUN_PATH=1 \ - ) -endef - -define HOST_LIBXML_PARSER_PERL_BUILD_CMDS - $(HOST_MAKE_ENV) $(MAKE) -C $(@D) -endef - -define HOST_LIBXML_PARSER_PERL_INSTALL_CMDS - $(HOST_MAKE_ENV) $(MAKE) -C $(@D) install -endef - -$(eval $(generic-package)) -$(eval $(host-generic-package))
package/metacity/metacity.mk +3 -0
@@ -11,6 +11,9 @@ METACITY_VERSION = $(METACITY_VERSION_MAJOR).$(METACITY_VERSION_MINOR) METACITY_SOURCE = metacity-$(METACITY_VERSION).tar.bz2 METACITY_SITE = http://ftp.gnome.org/pub/gnome/sources/metacity/$(METACITY_VERSION_MAJOR) +METACITY_CONF_ENV = \ + PERL5LIB=$(HOST_DIR)/usr/lib/perl5/$(shell perl -MConfig -e "print Config->{archname}") + METACITY_CONF_OPT = --x-includes=$(STAGING_DIR)/usr/include/X11 \ --x-libraries=$(STAGING_DIR)/usr/lib \ --disable-glibtest --disable-gconf \
Signature · 1 line
1.7.9.5
PATCH 6/12 libxml-parser-perl: move and refactor with perl infrastructure
Dear Francois Perrad,
Quoted 52 lines · Francois Perrad
(used by host-intltool and metacity)
Signed-off-by Francois Perrad <[email protected]>--- package/Config.in | 1 - package/Makefile.in | 8 ++--- package/cpan/Config.in | 1 + package/cpan/libxml-parser-perl/Config.in | 9 +++++ .../cpan/libxml-parser-perl/libxml-parser-perl.mk | 19 +++++++++++ package/intltool/intltool.mk | 4 +-- package/libxml-parser-perl/Config.in | 11 ------ package/libxml-parser-perl/libxml-parser-perl.mk | 35 -------------------- package/metacity/metacity.mk | 3 ++ 9 files changed, 36 insertions(+), 55 deletions(-) create mode 100644 package/cpan/libxml-parser-perl/Config.in create mode 100644 package/cpan/libxml-parser-perl/libxml-parser-perl.mk delete mode 100644 package/libxml-parser-perl/Config.in delete mode 100644 package/libxml-parser-perl/libxml-parser-perl.mkpackage/Config.in +0
-1@@ -586,7 +586,6 @@ source "package/json-c/Config.in" source "package/json-glib/Config.in" source "package/libjson/Config.in" source "package/libroxml/Config.in" -source "package/libxml-parser-perl/Config.in" source "package/libxml2/Config.in" source "package/libxmlpp/Config.in" source "package/libxslt/Config.in"package/Makefile.in +1
-3@@ -241,11 +241,9 @@ TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \ LDFLAGS="$(TARGET_LDFLAGS)" \ FCFLAGS="$(TARGET_FCFLAGS)" \ PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \ - PERLLIB="$(HOST_DIR)/usr/lib/perl" \ STAGING_DIR="$(STAGING_DIR)" -TARGET_MAKE_ENV=PATH=$(TARGET_PATH) \ - PERLLIB="$(HOST_DIR)/usr/lib/perl" +TARGET_MAKE_ENV=PATH=$(TARGET_PATH) HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \ AR="$(HOSTAR)" \@@ -265,15 +263,13 @@ HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \ PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \ PKG_CONFIG_SYSROOT_DIR="/" \ PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig:$(HOST_DIR)/usr/share/pkgconfig" \
package/Makefile.in HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \ · line 272
Quoted 10 lines
package/Makefile.in +1
-3- PERLLIB="$(HOST_DIR)/usr/lib/perl" \ LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" HOST_MAKE_ENV=PATH=$(HOST_PATH) \ LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \ PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \ PKG_CONFIG_SYSROOT_DIR="/" \ - PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig" \ - PERLLIB="$(HOST_DIR)/usr/lib/perl" + PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig"
These changes to package/Makefile.in have absolutely nothing to do with the libxml-parser-perl package. They should be part of a different commit, and come with a proper justification.
Quoted 15 lines
package/Makefile.in +0
-0################################################################################package/cpan/Config.in +1
-0@@ -0,0 +1 @@ +source "package/cpan/libxml-parser-perl/Config.in"package/cpan/libxml-parser-perl/Config.in new file +0
-0
package/cpan/libxml-parser-perl/Config.in line 6
Quoted 6 lines
package/cpan/libxml-parser-perl/Config.in new file +6
-0@@ -0,0 +1,9 @@ +config BR2_PACKAGE_LIBXML_PARSER_PERL + bool "libxml-parser-perl" + select BR2_PACKAGE_EXPAT + # Hide from configuration as we only support the host package + # for the moment + depends on BR2_HOST_ONLY
As I said in the comment to PATCH 07/12, we probably just want to get rid of the Config.in.
Also, can you enable rename detection when generating your patches (git format-patch -M), so that we can more easily review patches that are moving code around?
Quoted 10 lines
package/cpan/libxml-parser-perl/Config.in new file +3
-0+ help + A perl module for parsing XML documents +package/cpan/libxml-parser-perl/libxml-parser-perl.mk new file +1
-0@@ -0,0 +1,19 @@ +################################################################################
package/cpan/libxml-parser-perl/libxml-parser-perl.mk line 11
Quoted 10 lines
package/cpan/libxml-parser-perl/libxml-parser-perl.mk new file +10
-0+# +# libxml-parser-perl +# +################################################################################ + +LIBXML_PARSER_PERL_VERSION = 2.41 +LIBXML_PARSER_PERL_AUTHOR = TODDR +LIBXML_PARSER_PERL_SOURCE = XML-Parser-$(LIBXML_PARSER_PERL_VERSION).tar.gz +LIBXML_PARSER_PERL_SITE = $(BR2_CPAN_MIRROR)/authors/id/T/TO/TODDR/ +#LIBXML_PARSER_PERL_DEPENDENCIES = perl libwww-perl expat
We don't need commented code.
package/cpan/libxml-parser-perl/libxml-parser-perl.mk line 18
Quoted 7 lines
package/cpan/libxml-parser-perl/libxml-parser-perl.mk new file +7
-0+HOST_LIBXML_PARSER_PERL_DEPENDENCIES = host-expat +LIBXML_PARSER_PERL_LICENSE = perl_5 + +HOST_LIBXML_PARSER_PERL_CONF_OPT += EXPATLIBPATH=$(HOST_DIR)/usr/lib +HOST_LIBXML_PARSER_PERL_CONF_OPT += EXPATINCPATH=$(HOST_DIR)/usr/include + +#$(eval $(perl-package))
Ditto.
package/intltool/intltool.mk INTLTOOL_LICENSE = GPLv2+ · line 14
Quoted 13 lines
package/cpan/libxml-parser-perl/libxml-parser-perl.mk new file +1
-0+$(eval $(host-perl-package))package/intltool/intltool.mk +2
-2@@ -10,8 +10,8 @@ INTLTOOL_LICENSE = GPLv2+ INTLTOOL_LICENSE_FILES = COPYING HOST_INTLTOOL_DEPENDENCIES = host-gettext host-libxml-parser-perl -HOST_INTLTOOL_CONF_OPT = \ - PERLLIB=$(HOST_DIR)/usr/lib/perl +HOST_INTLTOOL_CONF_ENV = \ + PERL5LIB=$(HOST_DIR)/usr/lib/perl5/$(shell perl -MConfig -e "print Config->{archname}")
Also not really related to libxml-parser-perl directly.
Quoted 66 lines
package/intltool/intltool.mk +0
-0$(eval $(autotools-package)) $(eval $(host-autotools-package))package/libxml-parser-perl/Config.in deleted +0
-11@@ -1,11 +0,0 @@ -config BR2_PACKAGE_LIBXML_PARSER_PERL - bool "libxml-parser-perl" - select BR2_PACKAGE_EXPAT - # Hide from configuration as we only support the host package - # for the moment - depends on BR2_HOST_ONLY - help - The Perl XML::Parser module. - - http://www.cpan.org/modules/by-module/XML/ -package/libxml-parser-perl/libxml-parser-perl.mk deleted +0
-35@@ -1,35 +0,0 @@ -################################################################################ -# -# libxml-parser-perl -# -################################################################################ - -LIBXML_PARSER_PERL_VERSION = 2.36 -LIBXML_PARSER_PERL_SOURCE = XML-Parser-$(LIBXML_PARSER_PERL_VERSION).tar.gz -LIBXML_PARSER_PERL_SITE = http://www.cpan.org/modules/by-module/XML/ - -LIBXML_PARSER_PERL_DEPENDENCIES = expat - -define HOST_LIBXML_PARSER_PERL_CONFIGURE_CMDS - (cd $(@D) ; \ - $(HOST_CONFIGURE_OPTS) perl Makefile.PL \ - PREFIX=$(HOST_DIR)/usr \ - EXPATLIBPATH=$(HOST_DIR)/usr/lib \ - EXPATINCPATH=$(HOST_DIR)/usr/include \ - INSTALLDIRS=site \ - INSTALLSITELIB=$(HOST_DIR)/usr/lib/perl \ - INSTALLSITEARCH=$(HOST_DIR)/usr/lib/perl \ - USE_MM_LD_RUN_PATH=1 \ - ) -endef - -define HOST_LIBXML_PARSER_PERL_BUILD_CMDS - $(HOST_MAKE_ENV) $(MAKE) -C $(@D) -endef - -define HOST_LIBXML_PARSER_PERL_INSTALL_CMDS - $(HOST_MAKE_ENV) $(MAKE) -C $(@D) install -endef - -$(eval $(generic-package)) -$(eval $(host-generic-package))package/metacity/metacity.mk +0
-0
package/metacity/metacity.mk METACITY_VERSION = $(METACITY_VERSION_MAJOR).$(METACITY_VERSION_MINOR) · line 15
Quoted 5 lines
package/metacity/metacity.mk +2
-0@@ -11,6 +11,9 @@ METACITY_VERSION = $(METACITY_VERSION_MAJOR).$(METACITY_VERSION_MINOR) METACITY_SOURCE = metacity-$(METACITY_VERSION).tar.bz2 METACITY_SITE = http://ftp.gnome.org/pub/gnome/sources/metacity/$(METACITY_VERSION_MAJOR) +METACITY_CONF_ENV = \ + PERL5LIB=$(HOST_DIR)/usr/lib/perl5/$(shell perl -MConfig -e "print Config->{archname}")
Hum, the same thing here. Maybe we need to factorize this in package/Makefile.in, instead of removing all PERLLIB definitions from package/Makefile.in ?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 7/12 host-libmodule-build-perl: new package
In reply to Francois Perradthe version coming with host-perl is too old
--- package/cpan/Config.in | 1 + package/cpan/libmodule-build-perl/Config.in | 6 ++++++ .../libmodule-build-perl/libmodule-build-perl.mk | 16 ++++++++++++++++ scancpan | 3 +++ 4 files changed, 26 insertions(+) create mode 100644 package/cpan/libmodule-build-perl/Config.in create mode 100644 package/cpan/libmodule-build-perl/libmodule-build-perl.mk
package/cpan/Config.in +1 -0
@@ -1 +1,2 @@ +source "package/cpan/libmodule-build-perl/Config.in" source "package/cpan/libxml-parser-perl/Config.in"
package/cpan/libmodule-build-perl/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_LIBMODULE_BUILD_PERL + bool "libmodule-build-perl" + depends on BR2_HOST_ONLY + help + Build and install Perl modules +
package/cpan/libmodule-build-perl/libmodule-build-perl.mk new file +16 -0
@@ -0,0 +1,16 @@ +################################################################################ +# +# libmodule-build-perl +# +################################################################################ + +LIBMODULE_BUILD_PERL_VERSION = 0.4200 +LIBMODULE_BUILD_PERL_AUTHOR = LEONT +LIBMODULE_BUILD_PERL_SOURCE = Module-Build-$(LIBMODULE_BUILD_PERL_VERSION).tar.gz +LIBMODULE_BUILD_PERL_SITE = $(BR2_CPAN_MIRROR)/authors/id/L/LE/LEONT/ +#LIBMODULE_BUILD_PERL_DEPENDENCIES = perl +HOST_LIBMODULE_BUILD_PERL_DEPENDENCIES = +LIBMODULE_BUILD_PERL_LICENSE = perl_5 + +#$(eval $(perl-package)) +$(eval $(host-perl-package))
scancpan +3 -0
@@ -509,8 +509,10 @@ sub fetch { $dist{$name} = $result; my @deps_build = (); my @deps_runtime = (); + my $mb; foreach my $dep (@{$result->{dependency}}) { my $modname = ${$dep}{module}; + $mb = 1 if $modname eq q{Module::Build}; next if $modname eq q{perl}; next if $modname =~ m|^Alien|; next if $modname =~ m|^Win32|;
@@ -527,6 +529,7 @@ sub fetch { } fetch( $distname ); } + unshift @deps_build, q{Module-Build} if $mb; $deps_build{$name} = \@deps_build; $deps_runtime{$name} = \@deps_runtime; }
Signature · 1 line
1.7.9.5
PATCH 7/12 host-libmodule-build-perl: new package
Dear Francois Perrad,
Quoted 25 lines · Francois Perrad
the version coming with host-perl is too old
Signed-off-by Francois Perrad <[email protected]>--- package/cpan/Config.in | 1 + package/cpan/libmodule-build-perl/Config.in | 6 ++++++ .../libmodule-build-perl/libmodule-build-perl.mk | 16 ++++++++++++++++ scancpan | 3 +++ 4 files changed, 26 insertions(+) create mode 100644 package/cpan/libmodule-build-perl/Config.in create mode 100644 package/cpan/libmodule-build-perl/libmodule-build-perl.mkpackage/cpan/Config.in +1
-0@@ -1 +1,2 @@ +source "package/cpan/libmodule-build-perl/Config.in" source "package/cpan/libxml-parser-perl/Config.in"package/cpan/libmodule-build-perl/Config.in new file +0
-0
package/cpan/libmodule-build-perl/Config.in line 3
Quoted 3 lines
package/cpan/libmodule-build-perl/Config.in new file +3
-0@@ -0,0 +1,6 @@ +config BR2_PACKAGE_LIBMODULE_BUILD_PERL + bool "libmodule-build-perl" + depends on BR2_HOST_ONLY
I think this BR2_HOST_ONLY thing is stupid. I know we have it in Buildroot, but we should just kill it and remove the useless Config.in files.
Quoted 11 lines
package/cpan/libmodule-build-perl/Config.in new file +3
-0+ help + Build and install Perl modules +package/cpan/libmodule-build-perl/libmodule-build-perl.mk new file +2
-0@@ -0,0 +1,16 @@ +################################################################################ +#
package/cpan/libmodule-build-perl/libmodule-build-perl.mk line 12
Quoted 10 lines
package/cpan/libmodule-build-perl/libmodule-build-perl.mk new file +10
-0+# libmodule-build-perl +# +################################################################################ + +LIBMODULE_BUILD_PERL_VERSION = 0.4200 +LIBMODULE_BUILD_PERL_AUTHOR = LEONT +LIBMODULE_BUILD_PERL_SOURCE = Module-Build-$(LIBMODULE_BUILD_PERL_VERSION).tar.gz +LIBMODULE_BUILD_PERL_SITE = $(BR2_CPAN_MIRROR)/authors/id/L/LE/LEONT/ +#LIBMODULE_BUILD_PERL_DEPENDENCIES = perl +HOST_LIBMODULE_BUILD_PERL_DEPENDENCIES =
Is this needed? Maybe to remove host-perl as an automatic dependency? In any case, having a comment on top of this line would be good.
package/cpan/libmodule-build-perl/libmodule-build-perl.mk line 15
Quoted 3 lines
package/cpan/libmodule-build-perl/libmodule-build-perl.mk new file +3
-0+LIBMODULE_BUILD_PERL_LICENSE = perl_5 + +#$(eval $(perl-package))
Remove commented lines.
Quoted 17 lines
package/cpan/libmodule-build-perl/libmodule-build-perl.mk new file +1
-0+$(eval $(host-perl-package))scancpan +2
-0@@ -509,8 +509,10 @@ sub fetch { $dist{$name} = $result; my @deps_build = (); my @deps_runtime = (); + my $mb; foreach my $dep (@{$result->{dependency}}) { my $modname = ${$dep}{module}; + $mb = 1 if $modname eq q{Module::Build}; next if $modname eq q{perl}; next if $modname =~ m|^Alien|; next if $modname =~ m|^Win32|;
scancpan sub fetch { · line 535
Quoted 7 lines
scancpan +1
-0@@ -527,6 +529,7 @@ sub fetch { } fetch( $distname ); } + unshift @deps_build, q{Module-Build} if $mb; $deps_build{$name} = \@deps_build; $deps_runtime{$name} = \@deps_runtime; }
I believe this chunk should be part of the patch adding scancpan.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 8/12 manual: adding packages perl
In reply to Francois Perrad--- docs/manual/adding-packages-perl.txt | 91 ++++++++++++++++++++++++++++++++++ docs/manual/adding-packages.txt | 2 + 2 files changed, 93 insertions(+) create mode 100644 docs/manual/adding-packages-perl.txt
docs/manual/adding-packages-perl.txt new file +91 -0
@@ -0,0 +1,91 @@ +// -*- mode:doc; -*- +// vim: set syntax=asciidoc: + +Infrastructure for Perl/CPAN packages +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +[[perl-package-tutorial]] + ++perl-package+ tutorial +^^^^^^^^^^^^^^^^^^^^^^^ + +First, let's see how to NOT write a +.mk+ file for a Perl/CPAN package, +with an example : + +------------------------ +01: ################################################################################ +02: # +03: # libfoo-bar-perl +04: # +05: ################################################################################ +06: +07: LIBFOO_BAR_PERL_VERSION = 0.02 +08: LIBFOO_BAR_PERL_AUTHOR = MONGERS +09: LIBFOO_BAR_PERL_SOURCE = Foo-$(LIBFOO_BAR_PERL_VERSION).tar.gz +10: LIBFOO_BAR_PERL_SITE = $(BR2_CPAN_MIRROR)/authors/id/M/MO/MONGER/ +11: LIBFOO_BAR_PERL_DEPENDENCIES = perl libstrictures-perl +12: HOST_LIBFOO_BAR_PERL_DEPENDENCIES = host-libstrictures-perl +13: LIBFOO_BAR_PERL_LICENSE = perl_5 +14: +15: $(eval $(perl-package)) +16: $(eval $(host-perl-package)) +------------------------ + +In fact, this file and the Config.in are written by running +the script +./scancpan Foo-Bar+ in the +TOPDIR+ directory. +This script creates packages for all required Perl/CPAN dependencies. +All theses generated files are stored in the +package/cpan+ directory. +In very specific case, this Makefile must be modified, for example : for +adding a C native dependency. + +The Perl/CPAN modules are fine-grained, the number of module grows quickly +over 100. So, only modified files will be stored in the Buildroot repository, +all others can be regenerated by +scancpan+. + +[[perl-package-reference]] + ++perl-package+ reference +^^^^^^^^^^^^^^^^^^^^^^^^ + +This infrastructure handles various Perl build systems : ++ExtUtils-MakeMaker+, +Module-Build+ and +Module-Build-Tiny+. + +The main macro of the Perl/CPAN package infrastructure is ++perl-package+. It is similar to the +generic-package+ macro. The ability to +have target and host packages is also available, with the ++host-perl-package+ macro. + +Just like the generic infrastructure, the Perl/CPAN infrastructure +works by defining a number of variables before calling the ++perl-package+ macro. + +First, all the package metadata information variables that exist in the +generic infrastructure also exist in the Perl/CPAN infrastructure: ++LIBFOO_VERSION+, +LIBFOO_SOURCE+, ++LIBFOO_PATCH+, +LIBFOO_SITE+, ++LIBFOO_SUBDIR+, +LIBFOO_DEPENDENCIES+, ++LIBFOO_INSTALL_TARGET+. + +A few additional variables, specific to the Perl/CPAN infrastructure, +can also be defined. Many of them are only useful in very specific +cases, typical packages will therefore only use a few of them. + +* +LIBFOO_CONF_OPT+, to specify additional configure + options to pass to the +perl Makefile.PL+ or +perl Build.PL+. + By default, empty. + +* +LIBFOO_BUILD_OPT+, to specify additional options to + pass to +make pure_all+ or +perl Build build+ in the build step. + By default, empty. + +* +LIBFOO_INSTALL_TARGET_OPT+, to specify additional options to + pass to +make pure_install+ or +perl Build install+ in the install step. + By default, empty. + +* +HOST_LIBFOO_INSTALL_OPT+, to specify additional options to + pass to +make pure_install+ or +perl Build install+ in the install step. + By default, empty. + +* +LIBFOO_CLEAN_OPT+, to specify additional options to + pass to +make clean+ or +perl Build clean+ in the clean step. + By default, empty.
docs/manual/adding-packages.txt +2 -0
@@ -18,6 +18,8 @@ include::adding-packages-autotools.txt[] include::adding-packages-cmake.txt[] +include::adding-packages-perl.txt[] + include::adding-packages-hooks.txt[] include::adding-packages-gettext.txt[]
Signature · 1 line
1.7.9.5
PATCH 8/12 manual: adding packages perl
Dear Francois Perrad,
docs/manual/adding-packages-perl.txt line 43
Quoted 10 lines · Francois Perrad
docs/manual/adding-packages-perl.txt new file +10
-0+In fact, this file and the Config.in are written by running +the script +./scancpan Foo-Bar+ in the +TOPDIR+ directory. +This script creates packages for all required Perl/CPAN dependencies. +All theses generated files are stored in the +package/cpan+ directory. +In very specific case, this Makefile must be modified, for example : for +adding a C native dependency. + +The Perl/CPAN modules are fine-grained, the number of module grows quickly +over 100. So, only modified files will be stored in the Buildroot repository, +all others can be regenerated by +scancpan+.
I think this principle is quite problematic. If one looks at the "libmoose-perl: new package", it has a huge number of dependencies, and the vast majority of them are not available in Buildroot. One need to run the scancpan script to get all the packages generated.
I unfortunately don't really have a good proposal to offer. Isn't it better to simply integrate all those Perl modules as normal Buildroot packages, and have the proper tools/scripts to update those Perl module packages from CPAN ? So it would be a bit like your scancpan script, except that packages are committed in the Buildroot Git repository, and with scancpan you can update those packages from CPAN and send patches to Buildroot to push those updates.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 8/12 manual: adding packages perl
2013/11/20 Thomas Petazzoni <[email protected]>:
Quoted 20 lines
Dear Francois Perrad,
docs/manual/adding-packages-perl.txt line 43
Quoted 10 lines · Francois Perrad
docs/manual/adding-packages-perl.txt new file +10
-0+In fact, this file and the Config.in are written by running +the script +./scancpan Foo-Bar+ in the +TOPDIR+ directory. +This script creates packages for all required Perl/CPAN dependencies. +All theses generated files are stored in the +package/cpan+ directory. +In very specific case, this Makefile must be modified, for example : for +adding a C native dependency. + +The Perl/CPAN modules are fine-grained, the number of module grows quickly +over 100. So, only modified files will be stored in the Buildroot repository, +all others can be regenerated by +scancpan+.I think this principle is quite problematic. If one looks at the "libmoose-perl: new package", it has a huge number of dependencies, and the vast majority of them are not available in Buildroot. One need to run the scancpan script to get all the packages generated.
Quoted 8 lines
I unfortunately don't really have a good proposal to offer. Isn't it better to simply integrate all those Perl modules as normal Buildroot packages, and have the proper
tools/scriptsto update those Perl module packages from CPAN ? So it would be a bit like your scancpan script, except that packages are committed in the Buildroot Git repository, and with scancpan you can update those packages from CPAN and send patches to Buildroot to push those updates.
A BR user (a single developer or an organization) needs its own repository for config, specific packages and final application. At this time, I think that packages generated by scancpan must be saved in an user repo and not in the BR repo.
But we really need feeback from users.
Fran?ois
Quoted 11 lines
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH 8/12 manual: adding packages perl
Dear Fran?ois Perrad,
Quoted 14 lines · Fran?ois Perrad
Quoted 5 lines
I think this principle is quite problematic. If one looks at the "libmoose-perl: new package", it has a huge number of dependencies, and the vast majority of them are not available in Buildroot. One need to run the scancpan script to get all the packages generated.
Quoted 7 lines
I unfortunately don't really have a good proposal to offer. Isn't it better to simply integrate all those Perl modules as normal Buildroot packages, and have the proper
tools/scriptsto update those Perl module packages from CPAN ? So it would be a bit like your scancpan script, except that packages are committed in the Buildroot Git repository, and with scancpan you can update those packages from CPAN and send patches to Buildroot to push those updates.
Quoted 4 lines
A BR user (a single developer or an organization) needs its own repository for config, specific packages and final application. At this time, I think that packages generated by
scancpanmust be saved in an user repo and not in the BR repo.
That would be ok if that would work for *all* packages. But apparently for some packages, you anyway need them in the BR repository because the scancpan cannot generate the package .mk completely (if I understand correctly, when the package has dependencies on C/native libraries). And I'd find it really strange/weird to have packages in Buildroot that declare some dependencies that are not available in Buildroot.
Having hundreds of Perl packages does not really scare me much actually, for several reasons:
(1) It seems like with a tool similar to scancpan, one can easily maintain/updated these packages.
(2) You're active on maintaining the Perl stuff.
(3) With the perl infrastructure you've done, each .mk file is really small and straightforward.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 9/12 libcurses-perl: new package
In reply to Francois Perrad(depends on ncurses)
--- package/cpan/Config.in | 1 + package/cpan/libcurses-perl/Config.in | 6 ++++++ package/cpan/libcurses-perl/libcurses-perl.mk | 15 +++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 package/cpan/libcurses-perl/Config.in create mode 100644 package/cpan/libcurses-perl/libcurses-perl.mk
package/cpan/Config.in +1 -0
@@ -1,2 +1,3 @@ +source "package/cpan/libcurses-perl/Config.in" source "package/cpan/libmodule-build-perl/Config.in" source "package/cpan/libxml-parser-perl/Config.in"
package/cpan/libcurses-perl/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_LIBCURSES_PERL + bool "libcurses-perl" + select BR2_PACKAGE_NCURSES + help + terminal screen handling and optimization +
package/cpan/libcurses-perl/libcurses-perl.mk new file +15 -0
@@ -0,0 +1,15 @@ +################################################################################ +# +# libcurses-perl +# +################################################################################ + +LIBCURSES_PERL_VERSION = 1.28 +LIBCURSES_PERL_AUTHOR = GIRAFFED +LIBCURSES_PERL_SOURCE = Curses-$(LIBCURSES_PERL_VERSION).tgz +LIBCURSES_PERL_SITE = $(BR2_CPAN_MIRROR)/authors/id/G/GI/GIRAFFED/ +LIBCURSES_PERL_DEPENDENCIES = perl ncurses +HOST_LIBCURSES_PERL_DEPENDENCIES = host-ncurses + +$(eval $(perl-package)) +$(eval $(host-perl-package))
Signature · 1 line
1.7.9.5
PATCH 10/12 libnet-ssleay-perl: new package
In reply to Francois Perrad(depends on openssl)
--- package/cpan/Config.in | 1 + package/cpan/libnet-ssleay-perl/Config.in | 6 ++++++ .../cpan/libnet-ssleay-perl/libnet-ssleay-perl.mk | 16 ++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 package/cpan/libnet-ssleay-perl/Config.in create mode 100644 package/cpan/libnet-ssleay-perl/libnet-ssleay-perl.mk
package/cpan/Config.in +1 -0
@@ -1,3 +1,4 @@ source "package/cpan/libcurses-perl/Config.in" source "package/cpan/libmodule-build-perl/Config.in" +source "package/cpan/libnet-ssleay-perl/Config.in" source "package/cpan/libxml-parser-perl/Config.in"
package/cpan/libnet-ssleay-perl/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_LIBNET_SSLEAY_PERL + bool "libnet-ssleay-perl" + select BR2_PACKAGE_OPENSSL + help + Perl extension for using OpenSSL +
package/cpan/libnet-ssleay-perl/libnet-ssleay-perl.mk new file +16 -0
@@ -0,0 +1,16 @@ +################################################################################ +# +# libnet-ssleay-perl +# +################################################################################ + +LIBNET_SSLEAY_PERL_VERSION = 1.53 +LIBNET_SSLEAY_PERL_AUTHOR = MIKEM +LIBNET_SSLEAY_PERL_SOURCE = Net-SSLeay-$(LIBNET_SSLEAY_PERL_VERSION).tar.gz +LIBNET_SSLEAY_PERL_SITE = $(BR2_CPAN_MIRROR)/authors/id/M/MI/MIKEM/ +LIBNET_SSLEAY_PERL_DEPENDENCIES = perl openssl +HOST_LIBNET_SSLEAY_PERL_DEPENDENCIES = host-openssl +LIBNET_SSLEAY_PERL_LICENSE = ssleay + +$(eval $(perl-package)) +$(eval $(host-perl-package))
Signature · 1 line
1.7.9.5
PATCH 11/12 libmoose-perl: new package
In reply to Francois Perradhere, tips in LIBMOOSE_PERL_CONF_MM_OPT
Config.in is generated by scancpan
--- package/cpan/libmoose-perl/libmoose-perl.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 package/cpan/libmoose-perl/libmoose-perl.mk
package/cpan/libmoose-perl/libmoose-perl.mk new file +18 -0
@@ -0,0 +1,18 @@ +################################################################################ +# +# libmoose-perl +# +################################################################################ + +LIBMOOSE_PERL_VERSION = 2.1005 +LIBMOOSE_PERL_AUTHOR = ETHER +LIBMOOSE_PERL_SOURCE = Moose-$(LIBMOOSE_PERL_VERSION).tar.gz +LIBMOOSE_PERL_SITE = $(BR2_CPAN_MIRROR)/authors/id/E/ET/ETHER/ +LIBMOOSE_PERL_DEPENDENCIES = perl host-libdist-checkconflicts-perl libpackage-deprecationmanager-perl libpackage-stash-xs-perl libsub-exporter-perl libparams-util-perl libtask-weaken-perl libmro-compat-perl liblist-moreutils-perl libclass-load-xs-perl libtry-tiny-perl libeval-closure-perl libclass-load-perl libpackage-stash-perl libdist-checkconflicts-perl libsub-name-perl libdata-optlist-perl libdevel-globaldestruction-perl +HOST_LIBMOOSE_PERL_DEPENDENCIES = host-libdist-checkconflicts-perl host-libpackage-deprecationmanager-perl host-libpackage-stash-xs-perl host-libsub-exporter-perl host-libparams-util-perl host-libtask-weaken-perl host-libmro-compat-perl host-liblist-moreutils-perl host-libclass-load-xs-perl host-libtry-tiny-perl host-libeval-closure-perl host-libclass-load-perl host-libpackage-stash-perl host-libdist-checkconflicts-perl host-libsub-name-perl host-libdata-optlist-perl host-libdevel-globaldestruction-perl +LIBMOOSE_PERL_LICENSE = perl_5 + +LIBMOOSE_PERL_CONF_OPT = CCFLAGS="$(TARGET_CFLAGS) -I." + +$(eval $(perl-package)) +$(eval $(host-perl-package))
Signature · 1 line
1.7.9.5
PATCH 12/12 libxml-libxml-perl: new package
In reply to Francois Perrad(depends on libxml2 & zlib)
--- package/cpan/Config.in | 1 + package/cpan/libxml-libxml-perl/Config.in | 9 ++++++++ .../cpan/libxml-libxml-perl/libxml-libxml-perl.mk | 22 ++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 package/cpan/libxml-libxml-perl/Config.in create mode 100644 package/cpan/libxml-libxml-perl/libxml-libxml-perl.mk
package/cpan/Config.in +1 -0
@@ -1,4 +1,5 @@ source "package/cpan/libcurses-perl/Config.in" source "package/cpan/libmodule-build-perl/Config.in" source "package/cpan/libnet-ssleay-perl/Config.in" +source "package/cpan/libxml-libxml-perl/Config.in" source "package/cpan/libxml-parser-perl/Config.in"
package/cpan/libxml-libxml-perl/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_LIBXML_LIBXML_PERL + bool "libxml-libxml-perl" + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_ZLIB + select BR2_PACKAGE_LIBXML_SAX_PERL + select BR2_PACKAGE_LIBXML_NAMESPACESUPPORT_PERL + help + Interface to Gnome libxml2 xml parsing and DOM library +
package/cpan/libxml-libxml-perl/libxml-libxml-perl.mk new file +22 -0
@@ -0,0 +1,22 @@ +################################################################################ +# +# libxml-libxml-perl +# +################################################################################ + +LIBXML_LIBXML_PERL_VERSION = 2.0107 +LIBXML_LIBXML_PERL_AUTHOR = SHLOMIF +LIBXML_LIBXML_PERL_SOURCE = XML-LibXML-$(LIBXML_LIBXML_PERL_VERSION).tar.gz +LIBXML_LIBXML_PERL_SITE = $(BR2_CPAN_MIRROR)/authors/id/S/SH/SHLOMIF/ +LIBXML_LIBXML_PERL_DEPENDENCIES = perl zlib libxml2 libxml-sax-perl libxml-namespacesupport-perl +HOST_LIBXML_LIBXML_PERL_DEPENDENCIES = host-libxml2 host-zlib host-libxml-sax-perl host-libxml-namespacesupport-perl +LIBXML_LIBXML_PERL_LICENSE = perl_5 + +LIBXML_LIBXML_PERL_CONF_OPT += LIBS=-L$(STAGING_DIR)/usr/lib +LIBXML_LIBXML_PERL_CONF_OPT += INC=-I$(STAGING_DIR)/usr/include/libxml2 + +HOST_LIBXML_LIBXML_PERL_CONF_OPT += LIBS=-L$(HOST_DIR)/usr/lib +HOST_LIBXML_LIBXML_PERL_CONF_OPT += INC=-I$(HOST_DIR)/usr/include/libxml2 + +$(eval $(perl-package)) +$(eval $(host-perl-package))
Signature · 1 line
1.7.9.5