wok-stable rev 7411

merge
author fireflyoo <lufeng369@gmail.com>
date Sun Nov 28 17:16:25 2010 +0800 (2010-11-28)
parents dba3072e7d72 21199ecea5be
children 29cb03ab09fa
files
line diff
     1.1 --- a/libsdl-gfx-dev/receipt	Sun Nov 28 16:56:27 2010 +0800
     1.2 +++ b/libsdl-gfx-dev/receipt	Sun Nov 28 17:16:25 2010 +0800
     1.3 @@ -5,7 +5,7 @@
     1.4  CATEGORY="development"
     1.5  SHORT_DESC="SDL gfx lib devel files."
     1.6  MAINTAINER="pankso@slitaz.org"
     1.7 -DEPENDS="xorg"
     1.8 +DEPENDS="xorg libsdl-gfx"
     1.9  WANTED="libsdl-gfx"
    1.10  SOURCE="SDL_gfx"
    1.11  WEB_SITE="http://www.ferzkopp.net/joomla/content/view/19/14/"
     2.1 --- a/libsdl-net-dev/receipt	Sun Nov 28 16:56:27 2010 +0800
     2.2 +++ b/libsdl-net-dev/receipt	Sun Nov 28 17:16:25 2010 +0800
     2.3 @@ -5,7 +5,7 @@
     2.4  CATEGORY="development"
     2.5  SHORT_DESC="SDL net lib devel files."
     2.6  MAINTAINER="pankso@slitaz.org"
     2.7 -DEPENDS="xorg"
     2.8 +DEPENDS="xorg libsdl-net"
     2.9  WANTED="libsdl-net"
    2.10  SOURCE="SDL_net"
    2.11  WEB_SITE="http://www.libsdl.org/projects/SDL_net/"
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/libsdl-pango-dev/receipt	Sun Nov 28 17:16:25 2010 +0800
     3.3 @@ -0,0 +1,21 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="libsdl-pango-dev"
     3.7 +VERSION="0.1.2"
     3.8 +CATEGORY="development"
     3.9 +SHORT_DESC="devel files for libsdl-pango"
    3.10 +MAINTAINER="slaxemulator@gmail.com"
    3.11 +DEPENDS="libsdl-pango"
    3.12 +WEB_SITE="http://sdlpango.sourceforge.net/"
    3.13 +WANTED="libsdl-pango"
    3.14 +SOURCE="SDL_Pango"
    3.15 +
    3.16 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.17 +genpkg_rules()
    3.18 +{
    3.19 +	_pkg=$WOK/$WANTED/$SOURCE-$VERSION/_pkg
    3.20 +	mkdir -p $fs/usr/lib
    3.21 +	cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
    3.22 +	cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
    3.23 +}
    3.24 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/libsdl-pango/receipt	Sun Nov 28 17:16:25 2010 +0800
     4.3 @@ -0,0 +1,35 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="libsdl-pango"
     4.7 +VERSION="0.1.2"
     4.8 +CATEGORY="x-window"
     4.9 +SHORT_DESC="Pango SDL binding."
    4.10 +MAINTAINER="slaxemulator@gmail.com"
    4.11 +DEPENDS="pango libsdl"
    4.12 +BUILD_DEPENDS="pango-dev libsdl-dev pkg-config"
    4.13 +SOURCE="SDL_Pango"
    4.14 +TARBALL="$SOURCE-$VERSION.tar.gz"
    4.15 +WEB_SITE="http://sdlpango.sourceforge.net/"
    4.16 +WGET_URL="$SF_MIRROR/sdlpango/$TARBALL"
    4.17 +
    4.18 +# Rules to configure and make the package.
    4.19 +compile_rules()
    4.20 +{
    4.21 +	cd $src
    4.22 +	patch -Np0 -i ../stuff/SDL_Pango-$VERSION-API-adds.patch
    4.23 +	patch -Np1 -i ../stuff/matrix_declarations.patch
    4.24 +	./configure \
    4.25 +		--prefix=/usr \
    4.26 +		--infodir=/usr/share/info \
    4.27 +		--mandir=/usr/share/man \
    4.28 +		$CONFIGURE_ARGS &&
    4.29 +	make && make DESTDIR=$PWD/_pkg install
    4.30 +}
    4.31 +
    4.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.33 +genpkg_rules()
    4.34 +{
    4.35 +	mkdir -p $fs/usr/lib
    4.36 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    4.37 +}
    4.38 +
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/libsdl-pango/stuff/SDL_Pango-0.1.2-API-adds.patch	Sun Nov 28 17:16:25 2010 +0800
     5.3 @@ -0,0 +1,116 @@
     5.4 +--- src/SDL_Pango.c	2004-12-10 10:06:33.000000000 +0100
     5.5 ++++ src/SDL_Pango.c	2006-09-24 22:46:24.000000000 +0200
     5.6 +@@ -723,13 +723,8 @@
     5.7 +     SDL_UnlockSurface(surface);
     5.8 + }
     5.9 + 
    5.10 +-/*!
    5.11 +-    Create a context which contains Pango objects.
    5.12 +-
    5.13 +-    @return A pointer to the context as a SDLPango_Context*.
    5.14 +-*/
    5.15 + SDLPango_Context*
    5.16 +-SDLPango_CreateContext()
    5.17 ++SDLPango_CreateContext_GivenFontDesc(const char* font_desc)
    5.18 + {
    5.19 +     SDLPango_Context *context = g_malloc(sizeof(SDLPango_Context));
    5.20 +     G_CONST_RETURN char *charset;
    5.21 +@@ -743,8 +738,7 @@
    5.22 +     pango_context_set_language (context->context, pango_language_from_string (charset));
    5.23 +     pango_context_set_base_dir (context->context, PANGO_DIRECTION_LTR);
    5.24 + 
    5.25 +-    context->font_desc = pango_font_description_from_string(
    5.26 +-	MAKE_FONT_NAME (DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE));
    5.27 ++    context->font_desc = pango_font_description_from_string(font_desc);
    5.28 + 
    5.29 +     context->layout = pango_layout_new (context->context);
    5.30 + 
    5.31 +@@ -762,6 +756,17 @@
    5.32 + }
    5.33 + 
    5.34 + /*!
    5.35 ++    Create a context which contains Pango objects.
    5.36 ++
    5.37 ++    @return A pointer to the context as a SDLPango_Context*.
    5.38 ++*/
    5.39 ++SDLPango_Context*
    5.40 ++SDLPango_CreateContext()
    5.41 ++{
    5.42 ++     SDLPango_CreateContext_GivenFontDesc(MAKE_FONT_NAME(DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE));
    5.43 ++}
    5.44 ++
    5.45 ++/*!
    5.46 +     Free a context.
    5.47 + 
    5.48 +     @param *context [i/o] Context to be free
    5.49 +@@ -1053,6 +1058,20 @@
    5.50 +     pango_layout_set_font_description (context->layout, context->font_desc);
    5.51 + }
    5.52 + 
    5.53 ++void
    5.54 ++SDLPango_SetText_GivenAlignment(
    5.55 ++    SDLPango_Context *context,
    5.56 ++    const char *text,
    5.57 ++    int length,
    5.58 ++    SDLPango_Alignment alignment)
    5.59 ++{
    5.60 ++    pango_layout_set_attributes(context->layout, NULL);
    5.61 ++    pango_layout_set_text (context->layout, text, length);
    5.62 ++    pango_layout_set_auto_dir (context->layout, TRUE);
    5.63 ++    pango_layout_set_alignment (context->layout, alignment);
    5.64 ++    pango_layout_set_font_description (context->layout, context->font_desc);
    5.65 ++}
    5.66 ++
    5.67 + /*!
    5.68 +     Set plain text to context.
    5.69 +     Text must be utf-8.
    5.70 +@@ -1067,11 +1086,7 @@
    5.71 +     const char *text,
    5.72 +     int length)
    5.73 + {
    5.74 +-    pango_layout_set_attributes(context->layout, NULL);
    5.75 +-    pango_layout_set_text (context->layout, text, length);
    5.76 +-    pango_layout_set_auto_dir (context->layout, TRUE);
    5.77 +-    pango_layout_set_alignment (context->layout, PANGO_ALIGN_LEFT);
    5.78 +-    pango_layout_set_font_description (context->layout, context->font_desc);
    5.79 ++     SDLPango_SetText_GivenAlignment(context, text, length, SDLPANGO_ALIGN_LEFT);
    5.80 + }
    5.81 + 
    5.82 + /*!
    5.83 +--- src/SDL_Pango.h	2004-12-10 10:06:33.000000000 +0100
    5.84 ++++ src/SDL_Pango.h	2006-09-24 22:46:01.000000000 +0200
    5.85 +@@ -109,12 +109,20 @@
    5.86 +     SDLPANGO_DIRECTION_NEUTRAL	/*! Neutral */
    5.87 + } SDLPango_Direction;
    5.88 + 
    5.89 +-
    5.90 ++/*!
    5.91 ++    Specifies alignment of text. See Pango reference for detail
    5.92 ++*/
    5.93 ++typedef enum {
    5.94 ++    SDLPANGO_ALIGN_LEFT,
    5.95 ++    SDLPANGO_ALIGN_CENTER,
    5.96 ++    SDLPANGO_ALIGN_RIGHT
    5.97 ++} SDLPango_Alignment;
    5.98 + 
    5.99 + extern DECLSPEC int SDLCALL SDLPango_Init();
   5.100 + 
   5.101 + extern DECLSPEC int SDLCALL SDLPango_WasInit();
   5.102 + 
   5.103 ++extern DECLSPEC SDLPango_Context* SDLCALL SDLPango_CreateContext_GivenFontDesc(const char* font_desc);
   5.104 + extern DECLSPEC SDLPango_Context* SDLCALL SDLPango_CreateContext();
   5.105 + 
   5.106 + extern DECLSPEC void SDLCALL SDLPango_FreeContext(
   5.107 +@@ -157,6 +165,12 @@
   5.108 +     const char *markup,
   5.109 +     int length);
   5.110 + 
   5.111 ++extern DECLSPEC void SDLCALL SDLPango_SetText_GivenAlignment(
   5.112 ++    SDLPango_Context *context,
   5.113 ++    const char *text,
   5.114 ++    int length,
   5.115 ++    SDLPango_Alignment alignment);
   5.116 ++
   5.117 + extern DECLSPEC void SDLCALL SDLPango_SetText(
   5.118 +     SDLPango_Context *context,
   5.119 +     const char *markup,
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/libsdl-pango/stuff/matrix_declarations.patch	Sun Nov 28 17:16:25 2010 +0800
     6.3 @@ -0,0 +1,131 @@
     6.4 +Index: SDL_Pango-0.1.2/src/SDL_Pango.c
     6.5 +===================================================================
     6.6 +--- SDL_Pango-0.1.2.orig/src/SDL_Pango.c	2007-09-18 15:03:10.732910311 +0200
     6.7 ++++ SDL_Pango-0.1.2/src/SDL_Pango.c	2007-09-18 15:04:41.970109622 +0200
     6.8 +@@ -286,6 +286,59 @@
     6.9 + } contextImpl;
    6.10 + 
    6.11 + 
    6.12 ++const SDLPango_Matrix _MATRIX_WHITE_BACK
    6.13 ++    = {255, 0, 0, 0,
    6.14 ++       255, 0, 0, 0,
    6.15 ++       255, 0, 0, 0,
    6.16 ++       255, 255, 0, 0,};
    6.17 ++
    6.18 ++/*!
    6.19 ++    Specifies white back and black letter.
    6.20 ++*/
    6.21 ++const SDLPango_Matrix *MATRIX_WHITE_BACK = &_MATRIX_WHITE_BACK;
    6.22 ++
    6.23 ++const SDLPango_Matrix _MATRIX_BLACK_BACK
    6.24 ++    = {0, 255, 0, 0,
    6.25 ++       0, 255, 0, 0,
    6.26 ++       0, 255, 0, 0,
    6.27 ++       255, 255, 0, 0,};
    6.28 ++/*!
    6.29 ++    Specifies black back and white letter.
    6.30 ++*/
    6.31 ++const SDLPango_Matrix *MATRIX_BLACK_BACK = &_MATRIX_BLACK_BACK;
    6.32 ++
    6.33 ++const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_BLACK_LETTER
    6.34 ++    = {0, 0, 0, 0,
    6.35 ++       0, 0, 0, 0,
    6.36 ++       0, 0, 0, 0,
    6.37 ++       0, 255, 0, 0,};
    6.38 ++/*!
    6.39 ++    Specifies transparent back and black letter.
    6.40 ++*/
    6.41 ++const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_BLACK_LETTER = &_MATRIX_TRANSPARENT_BACK_BLACK_LETTER;
    6.42 ++
    6.43 ++const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_WHITE_LETTER
    6.44 ++    = {255, 255, 0, 0,
    6.45 ++       255, 255, 0, 0,
    6.46 ++       255, 255, 0, 0,
    6.47 ++       0, 255, 0, 0,};
    6.48 ++/*!
    6.49 ++    Specifies transparent back and white letter.
    6.50 ++*/
    6.51 ++const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_WHITE_LETTER = &_MATRIX_TRANSPARENT_BACK_WHITE_LETTER;
    6.52 ++
    6.53 ++const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER
    6.54 ++    = {255, 255, 0, 0,
    6.55 ++       255, 255, 0, 0,
    6.56 ++       255, 255, 0, 0,
    6.57 ++       0, 0, 0, 0,};
    6.58 ++/*!
    6.59 ++    Specifies transparent back and transparent letter.
    6.60 ++    This is useful for KARAOKE like rendering.
    6.61 ++*/
    6.62 ++const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER = &_MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER;
    6.63 ++
    6.64 ++
    6.65 + /*!
    6.66 +     Initialize the Glib and Pango API.
    6.67 +     This must be called before using other functions in this library,
    6.68 +Index: SDL_Pango-0.1.2/src/SDL_Pango.h
    6.69 +===================================================================
    6.70 +--- SDL_Pango-0.1.2.orig/src/SDL_Pango.h	2007-09-18 15:03:10.732910311 +0200
    6.71 ++++ SDL_Pango-0.1.2/src/SDL_Pango.h	2007-09-18 15:06:24.919976401 +0200
    6.72 +@@ -47,57 +47,27 @@
    6.73 +     Uint8 m[4][4];  /*! Matrix variables */
    6.74 + } SDLPango_Matrix;
    6.75 + 
    6.76 +-const SDLPango_Matrix _MATRIX_WHITE_BACK
    6.77 +-    = {255, 0, 0, 0,
    6.78 +-       255, 0, 0, 0,
    6.79 +-       255, 0, 0, 0,
    6.80 +-       255, 255, 0, 0,};
    6.81 +-
    6.82 + /*!
    6.83 +     Specifies white back and black letter.
    6.84 + */
    6.85 +-const SDLPango_Matrix *MATRIX_WHITE_BACK = &_MATRIX_WHITE_BACK;
    6.86 +-
    6.87 +-const SDLPango_Matrix _MATRIX_BLACK_BACK
    6.88 +-    = {0, 255, 0, 0,
    6.89 +-       0, 255, 0, 0,
    6.90 +-       0, 255, 0, 0,
    6.91 +-       255, 255, 0, 0,};
    6.92 ++extern const SDLPango_Matrix *MATRIX_WHITE_BACK;
    6.93 + /*!
    6.94 +     Specifies black back and white letter.
    6.95 + */
    6.96 +-const SDLPango_Matrix *MATRIX_BLACK_BACK = &_MATRIX_BLACK_BACK;
    6.97 +-
    6.98 +-const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_BLACK_LETTER
    6.99 +-    = {0, 0, 0, 0,
   6.100 +-       0, 0, 0, 0,
   6.101 +-       0, 0, 0, 0,
   6.102 +-       0, 255, 0, 0,};
   6.103 ++extern const SDLPango_Matrix *MATRIX_BLACK_BACK;
   6.104 + /*!
   6.105 +     Specifies transparent back and black letter.
   6.106 + */
   6.107 +-const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_BLACK_LETTER = &_MATRIX_TRANSPARENT_BACK_BLACK_LETTER;
   6.108 +-
   6.109 +-const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_WHITE_LETTER
   6.110 +-    = {255, 255, 0, 0,
   6.111 +-       255, 255, 0, 0,
   6.112 +-       255, 255, 0, 0,
   6.113 +-       0, 255, 0, 0,};
   6.114 ++extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_BLACK_LETTER;
   6.115 + /*!
   6.116 +     Specifies transparent back and white letter.
   6.117 + */
   6.118 +-const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_WHITE_LETTER = &_MATRIX_TRANSPARENT_BACK_WHITE_LETTER;
   6.119 +-
   6.120 +-const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER
   6.121 +-    = {255, 255, 0, 0,
   6.122 +-       255, 255, 0, 0,
   6.123 +-       255, 255, 0, 0,
   6.124 +-       0, 0, 0, 0,};
   6.125 ++extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_WHITE_LETTER;
   6.126 + /*!
   6.127 +     Specifies transparent back and transparent letter.
   6.128 +     This is useful for KARAOKE like rendering.
   6.129 + */
   6.130 +-const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER = &_MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER;
   6.131 ++extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER;
   6.132 + 
   6.133 + /*!
   6.134 +     Specifies direction of text. See Pango reference for detail
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/libsdl-perl/receipt	Sun Nov 28 17:16:25 2010 +0800
     7.3 @@ -0,0 +1,32 @@
     7.4 +# SliTaz package receipt.
     7.5 +
     7.6 +PACKAGE="libsdl-perl"
     7.7 +VERSION="2.2.6"
     7.8 +CATEGORY="x-window"
     7.9 +SHORT_DESC="SDL perl support."
    7.10 +MAINTAINER="slaxemulator@gmail.com"
    7.11 +DEPENDS="xorg libglu-mesa mesa libsdl libsdl-gfx libsdl-image libsdl-mixer libsdl-net libsmpeg libsdl-ttf"
    7.12 +BUILD_DEPENDS="perl-yaml xorg-dev libglu-mesa mesa-dev libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-mixer-dev libsdl-net-dev libsdl-ttf-dev"
    7.13 +SOURCE="SDL_Perl"
    7.14 +TARBALL="$SOURCE-v${VERSION}.tar.gz"
    7.15 +WEB_SITE="http://sdl.perl.org"
    7.16 +WGET_URL="http://search.cpan.org/CPAN/authors/id/K/KT/KTHAKORE/$TARBALL"
    7.17 +
    7.18 +# Rules to configure and make the package.
    7.19 +compile_rules()
    7.20 +{
    7.21 +	src=$WOK/$PACKAGE/$SOURCE-v${VERSION}
    7.22 +	cd $src
    7.23 +	perl Build.PL destdir="$PWD/_pkg" &&
    7.24 +	perl Build &&
    7.25 +	perl Build install
    7.26 +}
    7.27 +
    7.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    7.29 +genpkg_rules()
    7.30 +{
    7.31 +	_pkg=$WOK/$PACKAGE/$SOURCE-v${VERSION}/_pkg
    7.32 +	mkdir -p $fs/usr
    7.33 +	cp -a $_pkg/usr/lib $fs/usr
    7.34 +}
    7.35 +
     8.1 --- a/libsdl-ttf-dev/receipt	Sun Nov 28 16:56:27 2010 +0800
     8.2 +++ b/libsdl-ttf-dev/receipt	Sun Nov 28 17:16:25 2010 +0800
     8.3 @@ -5,7 +5,7 @@
     8.4  CATEGORY="development"
     8.5  SHORT_DESC="SDL ttf lib devel files."
     8.6  MAINTAINER="pankso@slitaz.org"
     8.7 -DEPENDS="xorg"
     8.8 +DEPENDS="xorg libsdl-ttf"
     8.9  WANTED="libsdl-ttf"
    8.10  SOURCE="SDL_ttf"
    8.11  WEB_SITE="http://www.libsdl.org/projects/SDL_ttf/"
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/perl-locale-gettext/receipt	Sun Nov 28 17:16:25 2010 +0800
     9.3 @@ -0,0 +1,33 @@
     9.4 +# SliTaz package receipt.
     9.5 +
     9.6 +PACKAGE="perl-locale-gettext"
     9.7 +VERSION="1.05"
     9.8 +CATEGORY="development"
     9.9 +SHORT_DESC="Permits access from Perl to the gettext() family of functions."
    9.10 +MAINTAINER="slaxemulator@gmail.com"
    9.11 +DEPENDS="perl gettext-base"
    9.12 +BUILD_DEPENDS="$DEPENDS"
    9.13 +SOURCE="gettext"
    9.14 +TARBALL="$SOURCE-$VERSION.tar.gz"
    9.15 +WEB_SITE="http://search.cpan.org/dist/gettext/"
    9.16 +WGET_URL="http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/$TARBALL"
    9.17 +
    9.18 +# Rules to configure and make the package.
    9.19 +compile_rules()
    9.20 +{
    9.21 +	cd $src
    9.22 +	patch -Np1 -i ../stuff/compatibility-with-POSIX-module.patch 
    9.23 +	perl Makefile.PL 
    9.24 +	make 
    9.25 +	make DESTDIR="$PWD/_pkg" install
    9.26 +}
    9.27 +
    9.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    9.29 +genpkg_rules()
    9.30 +{
    9.31 +	mkdir -p $fs/usr
    9.32 +	cp -a $_pkg/usr/lib $fs/usr
    9.33 +	find "$fs" -name perllocal.pod -delete
    9.34 +	find "$fs" -name .packlist -delete
    9.35 +}
    9.36 +
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/perl-yaml/receipt	Sun Nov 28 17:16:25 2010 +0800
    10.3 @@ -0,0 +1,35 @@
    10.4 +# SliTaz package receipt.
    10.5 +
    10.6 +PACKAGE="perl-yaml"
    10.7 +VERSION="0.71"
    10.8 +CATEGORY="development"
    10.9 +SHORT_DESC="Perl/CPAN Module YAML : YAML Aint Markup Language tm"
   10.10 +MAINTAINER="slaxemulator@gmail.com"
   10.11 +DEPENDS="perl"
   10.12 +BUILD_DEPENDS="perl"
   10.13 +SOURCE="YAML"
   10.14 +TARBALL="$SOURCE-$VERSION.tar.gz"
   10.15 +WEB_SITE="http://search.cpan.org/dist/YAML/"
   10.16 +WGET_URL="http://www.cpan.org/authors/id/A/AD/ADAMK/$TARBALL"
   10.17 +
   10.18 +# Rules to configure and make the package.
   10.19 +compile_rules()
   10.20 +{
   10.21 +	cd $src
   10.22 +	perl Makefile.PL &&
   10.23 +	make && 
   10.24 +	make DESTDIR=$PWD/_pkg install
   10.25 +}
   10.26 +
   10.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
   10.28 +genpkg_rules()
   10.29 +{
   10.30 +	mkdir -p $fs/usr
   10.31 +	cp -a $_pkg/usr/lib $fs/usr
   10.32 +	# remove perllocal.pod and .packlist
   10.33 +	find ${fs} -name perllocal.pod -delete
   10.34 +	find ${fs} -name .packlist -delete
   10.35 +
   10.36 +
   10.37 +}
   10.38 +