fix pruning tags + only prune files/dirs under @ARGV
[id3fs.git] / Makefile.PL
index 0724cd7..5ee546d 100644 (file)
@@ -2,17 +2,20 @@
 
 use ExtUtils::MakeMaker;
 
-my @binscripts=qw(id3fs-index);
+my @binscripts=qw(id3fs-index id3fs-tag);
 my @sbinscripts=qw(id3fsd);
 
 WriteMakefile(NAME=>"id3fs",
              VERSION=>"1.0",
              EXE_FILES=>[ map( "bin/$_", @binscripts) ],
              MAN1PODS=>{ map({ +"bin/$_" => "\${INST_MAN1DIR}/$_.1" } @binscripts) },
-             PREREQ_PM=>{ 'Fuse'        => 0,
-                          'DBI'         => 0,
-                          'DBD::SQLite' => 0} ,
-#            dist=>{ COMPRESS=>"gzip -9f", SUFFIX=>"gz", },
+             PREREQ_PM=>{ 'Fuse'                 => 0,
+                          'DBI'                  => 0,
+                          'DBD::SQLite'          => 0,
+                          'MP3::Tag'             => 0,
+                          'Audio::FLAC::Header'  => 0,
+                          'Ogg::Vorbis::Header'  => 0,
+             } ,
              ($] >= 5.005
               ? (ABSTRACT   => 'FUSE-based filesystem for browsing music metadata',
                  AUTHOR     => 'Ian Beckwith <ianb@erislabs.net>')
@@ -32,19 +35,24 @@ sub constants {
     my $add = q{
 
 # begin id3fs
+MAN1EXT = 1
 MAN8PODS = sbin/id3fsd
 INST_MAN8DIR = blib/man8
-INSTALLMAN8DIR = $(PREFIX)/man/man8
+INSTALLMAN8DIR = $(PERLPREFIX)/share/man/man8
 DESTINSTALLMAN8DIR = $(DESTDIR)$(INSTALLMAN8DIR)
 INSTALLSITEMAN8DIR = $(SITEPREFIX)/man/man8
 DESTINSTALLSITEMAN8DIR = $(DESTDIR)$(INSTALLSITEMAN8DIR)
-INSTALLVENDORMAN8DIR = $(VENDORPREFIX)/man/man8
+INSTALLVENDORMAN8DIR = $(VENDORPREFIX)/share/man/man8
 DESTINSTALLVENDORMAN8DIR = $(DESTDIR)$(INSTALLVENDORMAN8DIR)
 MAN8EXT = 8
 SBIN_FILES = sbin/id3fsd
 INST_SBINDIR = blib/sbin
-INSTALLSBINDIR = $(SITEPREFIX)/sbin
+INSTALLSBINDIR = $(PERLPREFIX)/sbin
 DESTINSTALLSBINDIR = $(DESTDIR)$(INSTALLSBINDIR)
+INSTALLSITESBINDIR = $(SITEPREFIX)/sbin
+DESTINSTALLSITESBINDIR = $(DESTDIR)$(INSTALLSITESBINDIR)
+INSTALLVENDORSBINDIR = $(VENDORPREFIX)/sbin
+DESTINSTALLVENDORSBINDIR = $(DESTDIR)$(INSTALLVENDORSBINDIR)
 # end id3fs
 
 };
@@ -121,9 +129,8 @@ sub MY::install {
 
   my $self = shift;
   my $inherited = $self->SUPER::install(@_);
-  my $conf="\t\t\$(INST_SBINDIR) \$(DESTINSTALLSBINDIR)";
-  $inherited =~ s/(^\s*\$\(INST_MAN)3(DIR\s*.*MAN)3(DIR\))/${1}3${2}3$3 \\\n${1}8${2}8$3 \\\n$conf/gm;
-  $inherited =~ s/(^\s*\$\(INST_MAN3DIR\s*.*MAN3DIR\))/$1 \\\n$conf/gm;
+  $inherited =~ s/(^\s*\$\(INST_)MAN3(DIR\s*.*)MAN3(DIR\))/${1}MAN3${2}MAN3${3} \\\n${1}SBIN${2}SBIN${3}/gm;
+  $inherited =~ s/(^\s*\$\(INST_MAN)3(DIR\s*.*MAN)3(DIR\))/${1}3${2}3$3 \\\n${1}8${2}8$3/gm;
 
   return $inherited;
 }