pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/42693: new package:devel/p5-InlineX-C2XS
>Number: 42693
>Category: pkg
>Synopsis: new package:devel/p5-InlineX-C2XS
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Jan 29 13:55:00 +0000 2010
>Originator: Wen Heping
>Release: NetBSD-5.0.1
>Organization:
private
>Environment:
>Description:
InlineX::C2XS - create an XS file from an Inline C file.
The C file that InlineX::C2XS needs to find would contain
only the C code.
InlineX::C2XS looks for the file in ./src directory,
expecting that the filename will be the same as what
appears after the final '::' in the module name (with a
'.c' extension).ie if the module is calle My::Next::Mod
it looks for a file ./src/Mod.c, and creates a file
named Mod.xs. Also created, is the file 'INLINE.h' - but
only if that file is needed. The generated xs file (and
INLINE.h) will be written to the cwd unless a third argument
(specifying a valid directory) is provided to the c2xs()
function.
The created XS file, when packaged with the '.pm' file, an
appropriate 'Makefile.PL', and 'INLINE.h' (if it's needed),
can be used to build the module in the usual way - without
any dependence upon the Inline::C module
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# p5-InlineX-C2XS
# p5-InlineX-C2XS/DESCR
# p5-InlineX-C2XS/Makefile
# p5-InlineX-C2XS/distinfo
#
echo c - p5-InlineX-C2XS
mkdir -p p5-InlineX-C2XS > /dev/null 2>&1
echo x - p5-InlineX-C2XS/DESCR
sed 's/^X//' >p5-InlineX-C2XS/DESCR << 'END-of-p5-InlineX-C2XS/DESCR'
XInlineX::C2XS - create an XS file from an Inline C file.
X
XThe C file that InlineX::C2XS needs to find would contain
Xonly the C code.
X
XInlineX::C2XS looks for the file in ./src directory,
Xexpecting that the filename will be the same as what
Xappears after the final '::' in the module name (with a
X'.c' extension).ie if the module is calle My::Next::Mod
Xit looks for a file ./src/Mod.c, and creates a file
Xnamed Mod.xs. Also created, is the file 'INLINE.h' - but
Xonly if that file is needed. The generated xs file (and
XINLINE.h) will be written to the cwd unless a third argument
X(specifying a valid directory) is provided to the c2xs()
Xfunction.
X
XThe created XS file, when packaged with the '.pm' file, an
Xappropriate 'Makefile.PL', and 'INLINE.h' (if it's needed),
Xcan be used to build the module in the usual way - without
Xany dependence upon the Inline::C module
END-of-p5-InlineX-C2XS/DESCR
echo x - p5-InlineX-C2XS/Makefile
sed 's/^X//' >p5-InlineX-C2XS/Makefile << 'END-of-p5-InlineX-C2XS/Makefile'
X# $NetBSD$
X#
X
XDISTNAME= InlineX-C2XS-0.15
XPKGNAME= p5-${DISTNAME}
XCATEGORIES= devel perl5
XMASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Inline/SISYPHUS/}
X
XMAINTAINER= wenheping%gmail.com@localhost
XHOMEPAGE= http://search.cpan.org/dist/InlineX-C2XS/
XCOMMENT= Convert from Inline C code to XS
X
XDEPENDS+= p5-Inline>=0.45:../../devel/p5-Inline
X
X#PKG_INSTALLATION_TYPES= overwrite pkgviews
XPKG_DESTDIR_SUPPORT= user-destdir
X
XPERL5_PACKLIST= auto/InlineX/C2XS/.packlist
X
X.include "../../lang/perl5/module.mk"
X.include "../../mk/bsd.pkg.mk"
END-of-p5-InlineX-C2XS/Makefile
echo x - p5-InlineX-C2XS/distinfo
sed 's/^X//' >p5-InlineX-C2XS/distinfo << 'END-of-p5-InlineX-C2XS/distinfo'
X$NetBSD$
X
XSHA1 (InlineX-C2XS-0.15.tar.gz) = b3a064ac075b589d8d89e4a8affb69736d968f3e
XRMD160 (InlineX-C2XS-0.15.tar.gz) = 4b42d68d69b0518af6599cd140033867c5f57c53
XSize (InlineX-C2XS-0.15.tar.gz) = 21373 bytes
END-of-p5-InlineX-C2XS/distinfo
exit
Home |
Main Index |
Thread Index |
Old Index