Commits

Toby Inkster committed 820a702

update build system to use Module::Package::RDF

  • Participants
  • Parent commits e930083

Comments (0)

Files changed (5)

-use strict;
-use warnings;
-
-use inc::Module::Install;
-
-my $dist = 'RDF-iCalendar';
-my $fn   = "lib/$dist.pm"; $fn =~ s#-#/#g;
-
-name                $dist;
-perl_version_from   $fn;
-version_from        $fn;
-abstract_from       $fn;
-readme_from         $fn;
-author              'Toby Inkster <tobyink@cpan.org>';
-license             'perl';
-
-requires            'common::sense'       => 0;
-requires            'DateTime'            => 0;
-requires            'MIME::Base64'        => 0;
-requires            'namespace::clean'    => 0;
-requires            'RDF::Trine'          => '0.130';
-requires            'RDF::TrineShortcuts' => '0.100';
-requires            'RDF::vCard'          => '0.004';
-requires            'Scalar::Util'        => 0;
-test_requires       'Test::More'          => '0.61';
-requires            'URI'                 => 0;
-
-
-resources(
-	'homepage'   => "https://metacpan.org/release/$dist",
-	'repository' => "http://goddamn.co.uk/svn-web/perlmods/browse/$dist/",
-	'bugtracker' => "http://rt.cpan.org/Dist/Display.html?Queue=$dist",
-	);
-
-keywords(qw(RDF Semantic Web SemWeb vCalendar iCalendar iCal Directory Event Todo hCalendar hCal));
-	
-write_doap_changes;
-write_doap_changes_xml;
-auto_license;
-auto_manifest;
-
-auto_install;
-WriteAll(
-	'meta' => 1,
-	'sign' => 1,
-	);
+use inc::Module::Package 'RDF:standard'

File examples/example1.pl

 use lib "lib";
-use lib "../HTML-HTML5-Parser/lib";
-use lib "../HTML-Microformats/lib";
-use lib "../RDF-vCard/lib";
+use lib "../p5-html-html5-parser/lib";
+use lib "../p5-html-microformats/lib";
+use lib "../p5-rdf-vcard/lib";
 
 use HTML::Microformats;
-use RDF::TrineShortcuts;
+use RDF::TrineX::Functions -shortcuts;
 use RDF::iCalendar::Exporter;
 
 my $hcalendar = <<'HTML';

File meta/changes.ttl

-#############################################################
-
 @prefix :        <http://usefulinc.com/ns/doap#> .
 @prefix dcs:     <http://ontologi.es/doap-changeset#> .
 @prefix dc:      <http://purl.org/dc/terms/> .
 @prefix toby:    <http://tobyinkster.co.uk/#> .
 @prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
 
-#############################################################
-
-<>
-
-	dc:title         "Changes" ;
-	dc:description   "Revision history for Perl extension RDF::iCalendar."@en ;
-	dc:subject       my:project ;
-	dc:creator       toby:i .
-
-#############################################################
-
+my:project :release my:v_0-001 .
 my:v_0-001
-
 	a               :Version ;
 	dc:issued       "2011-01-23"^^xsd:date ;
 	:revision       "0.001"^^xsd:string ;
 	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-iCalendar-0.001.tar.gz> ;
 	rdfs:label      "First release"@en .
 
+my:project :release my:v_0-002 .
 my:v_0-002
-
 	a               :Version ;
 	dc:issued       "2011-02-04"^^xsd:date ;
 	:revision       "0.002"^^xsd:string ;
 		dcs:item   [ rdfs:label "Support for VALARM." ; a dcs:Addition ] ; 
 		dcs:item   [ rdfs:label "Support for VJOURNAL." ; a dcs:Addition ] ; 
 		dcs:item   [ rdfs:label "Support for VFREEBUSY." ; a dcs:Addition ] 
-		] .
+	] .
 
-#############################################################
+my:project :release my:v_0-003 .
+my:v_0-003
+	a               :Version ;
+	dc:issued       "2011-02-04"^^xsd:date ;
+	:revision       "0.003"^^xsd:string ;
+	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-iCalendar-0.003.tar.gz> ;
+	dcs:changeset [
+		dcs:versus my:v_0-002 ;
+		dcs:item   [ rdfs:label "Module::Package::RDF." ; a dcs:Packaging ] 
+	] .
 
-my:project
-
-	a               :Project ;
-	:name           "RDF-iCalendar" ;
-	:shortdesc      "convert between RDF and iCalendar"@en ;
-	:programming-language  "Perl" ;
-	:homepage       <https://metacpan.org/release/RDF-iCalendar> ;
-	:download-page  <https://metacpan.org/release/RDF-iCalendar> ;
-	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=RDF-iCalendar> ;
-	:repository     [ a :SVNRepository ; :browse <http://goddamn.co.uk/svn-web/perlmods/browse/RDF-iCalendar/> ] ;
-	:maintainer     toby:i ;
-	:developer      toby:i ;
-	:documenter     toby:i ;
-	:tester         toby:i ;
-	:created        "2011-01-21"^^xsd:date ;
-	:license        <http://dev.perl.org/licenses/> ;
-	:release        my:v_0-001 , my:v_0-002 .
-
-#############################################################
-
-toby:i
-
-	a               foaf:Person ;
-	foaf:name       "Toby Inkster" ;
-	foaf:homepage   <http://tobyinkster.co.uk/> ;
-	foaf:page       <https://metacpan.org/author/TOBYINK> ;
-	foaf:mbox       <mailto:tobyink@cpan.org> ;
-	<http://www.w3.org/2002/07/owl#sameAs> <http://purl.org/NET/cpan-uri/person/tobyink> .
-
-#############################################################

File meta/doap.ttl

+@prefix :        <http://usefulinc.com/ns/doap#> .
+@prefix dcs:     <http://ontologi.es/doap-changeset#> .
+@prefix dc:      <http://purl.org/dc/terms/> .
+@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
+@prefix my:      <http://purl.org/NET/cpan-uri/dist/RDF-iCalendar/> .
+@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix toby:    <http://tobyinkster.co.uk/#> .
+@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
+
+my:project
+	a               :Project;
+	:name           "RDF-iCalendar";
+	:shortdesc      "convert between RDF and iCalendar"@en;
+	:programming-language  "Perl";
+	:homepage       <https://metacpan.org/release/RDF-iCalendar>;
+	:download-page  <https://metacpan.org/release/RDF-iCalendar>;
+	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=RDF-iCalendar>;
+	:repository     [ a :HgRepository; :browse <https://bitbucket.org/tobyink/p5-rdf-icalendar> ];
+	:maintainer     toby:i;
+	:developer      toby:i;
+	:documenter     toby:i;
+	:tester         toby:i;
+	:created        "2011-01-21"^^xsd:date;
+	:license        <http://dev.perl.org/licenses/>;
+	:category
+		[ rdfs:label "RDF"@en ],
+		[ rdfs:label "Semantic Web"@en ],
+		[ rdfs:label "SemWeb"@en ],
+		[ rdfs:label "vCalendar"@en ],
+		[ rdfs:label "iCalendar"@en ],
+		[ rdfs:label "iCal"@en ],
+		[ rdfs:label "Directory"@en ],
+		[ rdfs:label "Event"@en ],
+		[ rdfs:label "Todo"@en ],
+		[ rdfs:label "hCalendar"@en ],
+		[ rdfs:label "hCal"@en ].
+
+toby:i
+	a               foaf:Person;
+	foaf:name       "Toby Inkster";
+	foaf:homepage   <http://tobyinkster.co.uk/>;
+	foaf:page       <https://metacpan.org/author/TOBYINK>;
+	foaf:mbox       <mailto:tobyink@cpan.org>;
+	<http://www.w3.org/2002/07/owl#sameAs> <http://purl.org/NET/cpan-uri/person/tobyink>.

File meta/makefile.ttl

+# This file provides instructions for packaging.
+
+@prefix : <http://purl.org/NET/cpan-uri/terms#>.
+
+<http://purl.org/NET/cpan-uri/dist/RDF-iCalendar/project>
+	:perl_version_from
+		_:main;
+	:version_from
+		_:main;
+	:readme_from
+		_:main;
+	:test_requires
+		"Test::More 0.61";
+	:requires
+		"DateTime",
+		"RDF::vCard 0.009" .
+
+_:main
+	<http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName>
+		"lib/RDF/iCalendar.pm".