summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2010-02-04 09:54:44 +0000
committerwiz <wiz@pkgsrc.org>2010-02-04 09:54:44 +0000
commitc1d883a7366f1d7ce095a646f4004d423b33756b (patch)
treed47d6252a11936654e1ca5c3827468b2e9871201 /devel
parentc2e71571653ab704e14f8ca30626f260083dcb2b (diff)
downloadpkgsrc-c1d883a7366f1d7ce095a646f4004d423b33756b.tar.gz
Initial import of p5-InlineX-C2XS, packaged for wip by Wen Heping.
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
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-InlineX-C2XS/DESCR20
-rw-r--r--devel/p5-InlineX-C2XS/Makefile21
-rw-r--r--devel/p5-InlineX-C2XS/distinfo5
3 files changed, 46 insertions, 0 deletions
diff --git a/devel/p5-InlineX-C2XS/DESCR b/devel/p5-InlineX-C2XS/DESCR
new file mode 100644
index 00000000000..32731617bd8
--- /dev/null
+++ b/devel/p5-InlineX-C2XS/DESCR
@@ -0,0 +1,20 @@
+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
diff --git a/devel/p5-InlineX-C2XS/Makefile b/devel/p5-InlineX-C2XS/Makefile
new file mode 100644
index 00000000000..55c025ba3c5
--- /dev/null
+++ b/devel/p5-InlineX-C2XS/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/02/04 09:54:44 wiz Exp $
+#
+
+DISTNAME= InlineX-C2XS-0.15
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Inline/SISYPHUS/}
+
+MAINTAINER= wenheping@gmail.com
+HOMEPAGE= http://search.cpan.org/dist/InlineX-C2XS/
+COMMENT= Convert from Inline C code to XS
+LICENSE= ${PERL5_LICENSE}
+
+DEPENDS+= p5-Inline>=0.45:../../devel/p5-Inline
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+PERL5_PACKLIST= auto/InlineX/C2XS/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-InlineX-C2XS/distinfo b/devel/p5-InlineX-C2XS/distinfo
new file mode 100644
index 00000000000..ccaffdd90a3
--- /dev/null
+++ b/devel/p5-InlineX-C2XS/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/02/04 09:54:44 wiz Exp $
+
+SHA1 (InlineX-C2XS-0.15.tar.gz) = b3a064ac075b589d8d89e4a8affb69736d968f3e
+RMD160 (InlineX-C2XS-0.15.tar.gz) = 4b42d68d69b0518af6599cd140033867c5f57c53
+Size (InlineX-C2XS-0.15.tar.gz) = 21373 bytes