Commits

Toby Inkster committed 14bce5d

switch to Module::Package::RDF; update metadata

Comments (0)

Files changed (6)

-use strict;
-use warnings;
-
-use inc::Module::Install;
-
-my $dist = 'RDF-vCard';
-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            'Encode'              => 0;
-recommends          'XML::LibXML'         => '1.60';
-requires            'MIME::Base64'        => 0;
-requires            'namespace::clean'    => 0;
-requires            'RDF::Trine'          => '0.130';
-requires            'RDF::TrineShortcuts' => '0.100';
-requires            'Scalar::Util'        => 0;
-test_requires       'Test::More'          => '0.61';
-requires            'Text::vFile::asData' => '0.07';
-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 vCard Directory Contacts hCard XML));
-
-install_script 'vcard2rdf';
-install_script 'vcard2xml';
-
-write_doap_changes;
-write_doap_changes_xml;
-auto_license;
-auto_manifest;
-
-auto_install;
-WriteAll(
-	'meta' => 1,
-	'sign' => 1,
-	);
+use inc::Module::Package 'RDF:standard'

TODO

-TODO:
-* Add some more items to this list.
-* Add keywords to Makefile.PL
-#############################################################
-
 @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::vCard."@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-06"^^xsd:date ;
 	:revision       "0.001"^^xsd:string ;
 	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-vCard-0.001.tar.gz> ;
 	rdfs:label      "Initial release. RDF to vCard only."@en .
 
+my:project :release my:v_0-002.
 my:v_0-002
-
 	a               :Version ;
 	dc:issued       "2011-01-12"^^xsd:date ;
 	:revision       "0.002"^^xsd:string ;
 		dcs:item   [ rdfs:label "Include vCard VERSION property in output."@en ; a dcs:Addition ] ;
 		dcs:item   [ rdfs:label "Tidied up export_card method."@en ] ;
 		dcs:item   [ rdfs:label "More consistent support for comma-escaping."@en ]
-		] .
+	].
 
+my:project :release my:v_0-003.
 my:v_0-003
-
 	a               :Version ;
 	dc:issued       "2011-01-16"^^xsd:date ;
 	:revision       "0.003"^^xsd:string ;
 		dcs:item   [ rdfs:label "Add RDF::vCard::Importer module."@en ; a dcs:Addition ] ;
 		dcs:item   [ rdfs:label "RDF::vCard::Entity now has add_to_model() and node() methods."@en ; a dcs:Addition ] ;
 		dcs:item   [ rdfs:label "RDF::vCard::Line now has an add_to_model() method."@en ; a dcs:Addition ]
-		] .
+	].
 
+my:project :release my:v_0-004.
 my:v_0-004
-
 	a               :Version ;
 	dc:issued       "2011-01-23"^^xsd:date ;
 	:revision       "0.004"^^xsd:string ;
 	dcs:changeset [
 		dcs:versus my:v_0-003 ;
 		dcs:item   [ rdfs:label "More flexibility for other classes wanting to subclass this - particularly around different datatypes."@en ]
-		] .
+	].
 
+my:project :release my:v_0-005.
 my:v_0-005
-
 	a               :Version ;
 	dc:issued       "2011-01-30"^^xsd:date ;
 	:revision       "0.005"^^xsd:string ;
 		dcs:item   [ rdfs:label "nvalue method on RDF::vCard::Line."@en ; a dcs:Addition ] ;
 		dcs:item   [ rdfs:label "Experimental vCard XML support."@en ; a dcs:Addition ] ;
 		dcs:item   [ rdfs:label "Partial vCard 4.0 support."@en ; a dcs:Addition ]
-		] .
+	].
 
+my:project :release my:v_0-006.
 my:v_0-006
-
 	a               :Version ;
 	dc:issued       "2011-02-04"^^xsd:date ;
 	:revision       "0.006"^^xsd:string ;
 	dcs:changeset [
 		dcs:versus my:v_0-005 ;
 		dcs:item   [ rdfs:label "Fix WithXmlSupport's string overloading."@en ; a dcs:Bugfix ]
-		] .
+	].
 
+my:project :release my:v_0-007.
 my:v_0-007
-
 	a               :Version ;
 	dc:issued       "2011-02-16"^^xsd:date ;
 	:revision       "0.007"^^xsd:string ;
 		dcs:versus my:v_0-006 ;
 		dcs:item   [ rdfs:label "Setting vcard_version to 3 outputted version 4 vcards."@en ; a dcs:Bugfix ] ;
 		dcs:item   [ rdfs:label "jCard output."@en ; a dcs:Addition ]
-		] .
+	].
 
+my:project :release my:v_0-008.
 my:v_0-008
-
 	a               :Version ;
 	dc:issued       "2011-07-13"^^xsd:date ;
 	:revision       "0.008"^^xsd:string ;
 		dcs:item   [ rdfs:label "Add support for 'lang' option when converting vCards to RDF."@en ; a dcs:Addition ] ;
 		dcs:item   [ rdfs:label "Include language tags on plain literals, if provided."@en ; a dcs:Addition ] ;
 		dcs:item   [ rdfs:label "Use Content-Language HTTP header of downloaded vCards."@en ; a dcs:Addition ]
-		] .
+	].
 
-#############################################################
+my:project :release my:v_0-009.
+my:v_0-009
+	a               :Version ;
+	dc:issued       "2012-06-22"^^xsd:date ;
+	:revision       "0.009"^^xsd:string ;
+	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-vCard-0.009.tar.gz> ;
+	dcs:changeset [
+		dcs:versus my:v_0-008 ;
+		dcs:item   [ rdfs:label "Reduce dependencies - no longer need common::sense, RDF::TrineShortcuts (thus RDF::Query) or parent.pm, but do need RDF::TrineX::Functions."@en ; a dcs:Packaging ] ;
+		dcs:item   [ rdfs:label "Switch to Module::Package::RDF."@en ; a dcs:Packaging ]
+	].
 
-my:project
-
-	a               :Project ;
-	:name           "RDF-vCard" ;
-	:shortdesc      "convert between RDF and vCard"@en ;
-	:programming-language  "Perl" ;
-	:homepage       <https://metacpan.org/release/RDF-vCard> ;
-	:download-page  <https://metacpan.org/release/RDF-vCard> ;
-	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=RDF-vCard> ;
-	:repository     [ a :SVNRepository ; :browse <http://goddamn.co.uk/svn-web/perlmods/browse/RDF-vCard/> ] ;
-	:maintainer     toby:i ;
-	:developer      toby:i ;
-	:documenter     toby:i ;
-	:tester         toby:i ;
-	:created        "2011-01-05"^^xsd:date ;
-	:license        <http://dev.perl.org/licenses/> ;
-	:release        my:v_0-001 , my:v_0-002 , my:v_0-003 , my:v_0-004 , my:v_0-005 , my:v_0-006 , my:v_0-007 , my:v_0-008 .
-
-#############################################################
-
-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> .
-
-#############################################################
+@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-vCard/> .
+@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-vCard" ;
+	:shortdesc      "convert between RDF and vCard"@en ;
+	:programming-language  "Perl" ;
+	:homepage       <https://metacpan.org/release/RDF-vCard> ;
+	:download-page  <https://metacpan.org/release/RDF-vCard> ;
+	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=RDF-vCard> ;
+	:repository     [ a :HgRepository ; :browse <https://bitbucket.org/tobyink/p5-rdf-vcard> ] ;
+	:maintainer     toby:i ;
+	:developer      toby:i ;
+	:documenter     toby:i ;
+	:tester         toby:i ;
+	:created        "2011-01-05"^^xsd:date ;
+	:license        <http://dev.perl.org/licenses/> ;
+	:category 
+		[ rdfs:label "RDF"@en ],
+		[ rdfs:label "Semantic Web"@en ],
+		[ rdfs:label "SemWeb"@en ],
+		[ rdfs:label "vCard"@en ],
+		[ rdfs:label "Directory"@en ],
+		[ rdfs:label "Contacts"@en ],
+		[ rdfs:label "hCard"@en ],
+		[ rdfs:label "XML"@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> .

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-vCard/project>
+	:perl_version_from
+		_:main;
+	:version_from
+		_:main;
+	:readme_from
+		_:main;
+	:install_script
+		_:vcard2rdf,
+		_:vcard2xml;
+	:test_requires
+		"Test::More 0.61";
+	:requires
+		"XML::LibXML 1.70",
+		"namespace::clean",
+		"RDF::Trine 0.135",
+		"RDF::TrineX::Functions",
+		"Test::vFile::asData 0.07",
+		"URI".
+
+_:main
+	<http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName>
+		"lib/RDF/vCard.pm".
+
+_:vcard2rdf
+	<http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName>
+		"bin/vcard2rdf".
+
+_:vcard2xml
+	<http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName>
+		"bin/vcard2xml".
+@prefix dbug: <http://ontologi.es/doap-bugs#> .
+@prefix dc: <http://purl.org/dc/terms/> .
+@prefix doap: <http://usefulinc.com/ns/doap#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix prio: <http://purl.org/NET/cpan-uri/rt/priority/> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rt: <http://purl.org/NET/cpan-uri/rt/ticket/> .
+@prefix status: <http://purl.org/NET/cpan-uri/rt/status/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+