mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Add p5-File-BaseDir 0.02, use the freedesktop basedir spec.
PR: 70768 Submitted by: Rong-En Fan <rafan@infor.org>
This commit is contained in:
parent
e59fb64cbf
commit
624119f5e5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117015
@ -775,6 +775,7 @@
|
||||
SUBDIR += p5-ExtUtils-ParseXS
|
||||
SUBDIR += p5-ExtUtils-PkgConfig
|
||||
SUBDIR += p5-ExtUtils-XSBuilder
|
||||
SUBDIR += p5-File-BaseDir
|
||||
SUBDIR += p5-File-BasicFlock
|
||||
SUBDIR += p5-File-Binary
|
||||
SUBDIR += p5-File-Cache
|
||||
|
26
devel/p5-File-BaseDir/Makefile
Normal file
26
devel/p5-File-BaseDir/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# New ports collection makefile for: devel/p5-File-BaseDir
|
||||
# Date created: Aug 21 2004
|
||||
# Whom: Rong-En Fan <rafan@infor.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= File-BaseDir
|
||||
PORTVERSION= 0.02
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= ../../authors/id/P/PA/PARDUS/${PORTNAME}
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= rafan@infor.org
|
||||
COMMENT= Use the freedesktop basedir spec
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MAN3= File::BaseDir.3
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.if ${PERL_LEVEL} <= 500503
|
||||
EXTRA_PATCHES= ${PATCHDIR}/500503-*
|
||||
.endif
|
||||
.include <bsd.port.post.mk>
|
2
devel/p5-File-BaseDir/distinfo
Normal file
2
devel/p5-File-BaseDir/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (File-BaseDir-0.02.tar.gz) = 00e2729f364d430350355250cb9007e0
|
||||
SIZE (File-BaseDir-0.02.tar.gz) = 2462
|
39
devel/p5-File-BaseDir/files/500503-BaseDir.pm
Normal file
39
devel/p5-File-BaseDir/files/500503-BaseDir.pm
Normal file
@ -0,0 +1,39 @@
|
||||
--- BaseDir.pm.orig Sun Aug 22 11:18:29 2004
|
||||
+++ BaseDir.pm Sun Aug 22 11:20:04 2004
|
||||
@@ -5,26 +5,28 @@
|
||||
require File::Spec;
|
||||
require Exporter;
|
||||
|
||||
-our @ISA = qw(Exporter);
|
||||
-our @EXPORT_OK = qw(
|
||||
+use vars qw(@ISA @EXPORT_OK $VERSION);
|
||||
+@ISA = qw(Exporter);
|
||||
+@EXPORT_OK = qw(
|
||||
xdg_data_home xdg_data_dirs xdg_data_files
|
||||
xdg_config_home xdg_config_dirs xdg_config_files
|
||||
xdg_cache_home
|
||||
);
|
||||
-our $VERSION = 0.02;
|
||||
+$VERSION = 0.02;
|
||||
|
||||
my $rootdir = File::Spec->rootdir();
|
||||
|
||||
-our $xdg_data_home = File::Spec->catdir($ENV{HOME}, qw/.local share/);
|
||||
-our @xdg_data_dirs = (
|
||||
+use vars qw($xdg_data_home @xdg_data_dirs $xdg_config_home @xdg_config_dirs $xdg_cache_home);
|
||||
+$xdg_data_home = File::Spec->catdir($ENV{HOME}, qw/.local share/);
|
||||
+@xdg_data_dirs = (
|
||||
File::Spec->catdir($rootdir, qw/usr local share/),
|
||||
File::Spec->catdir($rootdir, qw/usr share/),
|
||||
);
|
||||
|
||||
-our $xdg_config_home = File::Spec->catdir($ENV{HOME}, '.config');
|
||||
-our @xdg_config_dirs = ( File::Spec->catdir($rootdir, qw/etc xdg/) );
|
||||
+$xdg_config_home = File::Spec->catdir($ENV{HOME}, '.config');
|
||||
+@xdg_config_dirs = ( File::Spec->catdir($rootdir, qw/etc xdg/) );
|
||||
|
||||
-our $xdg_cache_home = File::Spec->catdir($ENV{HOME}, '.cache');
|
||||
+$xdg_cache_home = File::Spec->catdir($ENV{HOME}, '.cache');
|
||||
|
||||
sub new { bless \$VERSION, shift } # what else is there to bless ?
|
||||
|
10
devel/p5-File-BaseDir/pkg-descr
Normal file
10
devel/p5-File-BaseDir/pkg-descr
Normal file
@ -0,0 +1,10 @@
|
||||
This module can be used to find directories and files as
|
||||
specified by the XDG Base Directory Specification. It takes
|
||||
care of defaults and uses File::Spec to make the output
|
||||
platform specific.
|
||||
|
||||
This module forked from File::MimeInfo.
|
||||
|
||||
For this module the XDG basedir specification 0.6 was used.
|
||||
|
||||
WWW: http://search.cpan.org/dist/File-BaseDir/
|
5
devel/p5-File-BaseDir/pkg-plist
Normal file
5
devel/p5-File-BaseDir/pkg-plist
Normal file
@ -0,0 +1,5 @@
|
||||
%%SITE_PERL%%/File/BaseDir.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/BaseDir/.packlist
|
||||
@unexec rmdir %D/%%SITE_PERL%%/File 2>/dev/null || true
|
||||
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/BaseDir 2>/dev/null || true
|
||||
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/File 2>/dev/null || true
|
Loading…
Reference in New Issue
Block a user