Skip to content

Commit

Permalink
Build results of e9de004 (on 0.2-series)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Jul 27, 2013
1 parent 1ba5d6b commit 0b28d6d
Show file tree
Hide file tree
Showing 45 changed files with 574 additions and 282 deletions.
6 changes: 5 additions & 1 deletion Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ my %module_build_args = (
"Kent Fredric <kentnl\@cpan.org>"
],
"dist_name" => "PortageXS",
"dist_version" => "0.2.12",
"dist_version" => "0.3.0",
"license" => "gpl",
"module_name" => "PortageXS",
"recommends" => {},
Expand All @@ -28,9 +28,13 @@ my %module_build_args = (
"Carp" => 0,
"DirHandle" => 0,
"Exporter" => 0,
"Moo" => "1.000008",
"Role::Tiny" => 0,
"Role::Tiny::With" => 0,
"Scalar::Util" => 0,
"Shell::EnvImporter" => 0,
"Term::ANSIColor" => 0,
"Tie::Hash::Method" => 0,
"overload" => 0,
"perl" => "v5.10.0",
"strict" => 0,
Expand Down
18 changes: 18 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
Revision history for PortageXS

0.3.0 2013-07-27T06:13:05Z
[00 Major Changes]
- Color logic factored out into its own module
- examples moved top level
- Exporter stuff replaced with Roles
- Hash is tied to warn about legacy code.
- ::UI::Console has most its methods deprecated now

[Bugfix]
- another residual path to make.conf ... better solution still in the
works.

[Dependencies::Added / runtime requires]
- Moo 1.000008
- Role::Tiny
- Role::Tiny::With
- Tie::Hash::Method

0.2.12 2013-07-24T06:23:39Z
[Bugfix]
- Partial solution to b.g.o #264680, bailing on unreadable categories,
Expand Down
57 changes: 29 additions & 28 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -18,41 +18,42 @@ etc/pxs/certs/server-key.enc
etc/pxs/certs/server-key.pem
etc/pxs/certs/test-ca.pem
etc/pxs/portagexsd.conf
examples/consolePrintDemo.pl
examples/fileBelongsToPackage.pl
examples/formatUseflags.pl
examples/getArch.pl
examples/getAvailableArches.pl
examples/getAvailableEbuilds.pl
examples/getCategories.pl
examples/getEbuildName.pl
examples/getEbuildVersion.pl
examples/getFilesOfInstalledPackage.pl
examples/getHomedir.pl
examples/getPackagesFromCategory.pl
examples/getPackagesFromWorld.pl
examples/getParamFromFile.pl
examples/getPortageMakeParam.pl
examples/getPortdirOverlay.pl
examples/getProfilePath.pl
examples/getUseSettingsOfInstalledPackage.pl
examples/getUsedesc.pl
examples/getUsedescs.pl
examples/getUsemasksFromProfile.pl
examples/recordAndRemovePackageFromWorld.pl
examples/resolveMirror.pl
examples/searchInstalledPackage.pl
examples/searchPackage.pl
examples/searchPackageByHerd.pl
examples/searchPackageByMaintainer.pl
examples/spinner.pl
lib/PortageXS.pm
lib/PortageXS/Colors.pm
lib/PortageXS/Core.pm
lib/PortageXS/System.pm
lib/PortageXS/UI/Console.pm
lib/PortageXS/UI/Spinner.pm
lib/PortageXS/Useflags.pm
lib/PortageXS/Version.pm
lib/PortageXS/examples/consolePrintDemo.pl
lib/PortageXS/examples/fileBelongsToPackage.pl
lib/PortageXS/examples/formatUseflags.pl
lib/PortageXS/examples/getArch.pl
lib/PortageXS/examples/getAvailableArches.pl
lib/PortageXS/examples/getAvailableEbuilds.pl
lib/PortageXS/examples/getCategories.pl
lib/PortageXS/examples/getEbuildName.pl
lib/PortageXS/examples/getEbuildVersion.pl
lib/PortageXS/examples/getFilesOfInstalledPackage.pl
lib/PortageXS/examples/getHomedir.pl
lib/PortageXS/examples/getPackagesFromCategory.pl
lib/PortageXS/examples/getPackagesFromWorld.pl
lib/PortageXS/examples/getParamFromFile.pl
lib/PortageXS/examples/getPortageMakeParam.pl
lib/PortageXS/examples/getPortdirOverlay.pl
lib/PortageXS/examples/getProfilePath.pl
lib/PortageXS/examples/getUseSettingsOfInstalledPackage.pl
lib/PortageXS/examples/getUsedesc.pl
lib/PortageXS/examples/getUsedescs.pl
lib/PortageXS/examples/getUsemasksFromProfile.pl
lib/PortageXS/examples/recordAndRemovePackageFromWorld.pl
lib/PortageXS/examples/resolveMirror.pl
lib/PortageXS/examples/searchInstalledPackage.pl
lib/PortageXS/examples/searchPackage.pl
lib/PortageXS/examples/searchPackageByHerd.pl
lib/PortageXS/examples/searchPackageByMaintainer.pl
lib/PortageXS/examples/spinner.pl
t/00-compile.t
t/000-report-versions-tiny.t
t/00_PortageXS.t
Expand Down
28 changes: 20 additions & 8 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@
"Carp" : "0",
"DirHandle" : "0",
"Exporter" : "0",
"Moo" : "1.000008",
"Role::Tiny" : "0",
"Role::Tiny::With" : "0",
"Scalar::Util" : "0",
"Shell::EnvImporter" : "0",
"Term::ANSIColor" : "0",
"Tie::Hash::Method" : "0",
"overload" : "0",
"perl" : "v5.10.0",
"strict" : "0",
Expand All @@ -68,31 +72,35 @@
"provides" : {
"PortageXS" : {
"file" : "lib/PortageXS.pm",
"version" : "v0.2.12"
"version" : "v0.3.0"
},
"PortageXS::Colors" : {
"file" : "lib/PortageXS/Colors.pm",
"version" : "v0.3.0"
},
"PortageXS::Core" : {
"file" : "lib/PortageXS/Core.pm",
"version" : "v0.2.12"
"version" : "v0.3.0"
},
"PortageXS::System" : {
"file" : "lib/PortageXS/System.pm",
"version" : "v0.2.12"
"version" : "v0.3.0"
},
"PortageXS::UI::Console" : {
"file" : "lib/PortageXS/UI/Console.pm",
"version" : "v0.2.12"
"version" : "v0.3.0"
},
"PortageXS::UI::Spinner" : {
"file" : "lib/PortageXS/UI/Spinner.pm",
"version" : "v0.2.12"
"version" : "v0.3.0"
},
"PortageXS::Useflags" : {
"file" : "lib/PortageXS/Useflags.pm",
"version" : "v0.2.12"
"version" : "v0.3.0"
},
"PortageXS::Version" : {
"file" : "lib/PortageXS/Version.pm",
"version" : "v0.2.12"
"version" : "v0.3.0"
}
},
"release_status" : "stable",
Expand All @@ -107,7 +115,7 @@
"web" : "https://github.com/gentoo-perl/PortageXS"
}
},
"version" : "0.2.12",
"version" : "0.3.0",
"x_BuiltWith" : {
"modules" : {
"Carp" : "1.29",
Expand All @@ -118,6 +126,9 @@
"File::Find" : "1.23",
"File::Temp" : "0.2301",
"Module::Build" : "0.4005",
"Moo" : "1.002",
"Role::Tiny" : "1.002005",
"Role::Tiny::With" : "NA(undef)",
"Scalar::Util" : "1.27",
"Shell::EnvImporter" : "1.06",
"Term::ANSIColor" : "4.02",
Expand All @@ -126,6 +137,7 @@
"Test::More" : "0.98",
"Test::Pod" : "1.48",
"Test::Simple" : "0.98",
"Tie::Hash::Method" : "0.02",
"lib" : "0.63",
"overload" : "1.22",
"perl" : "NA(skipped: perl)",
Expand Down
27 changes: 19 additions & 8 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,39 @@ name: PortageXS
provides:
PortageXS:
file: lib/PortageXS.pm
version: v0.2.12
version: v0.3.0
PortageXS::Colors:
file: lib/PortageXS/Colors.pm
version: v0.3.0
PortageXS::Core:
file: lib/PortageXS/Core.pm
version: v0.2.12
version: v0.3.0
PortageXS::System:
file: lib/PortageXS/System.pm
version: v0.2.12
version: v0.3.0
PortageXS::UI::Console:
file: lib/PortageXS/UI/Console.pm
version: v0.2.12
version: v0.3.0
PortageXS::UI::Spinner:
file: lib/PortageXS/UI/Spinner.pm
version: v0.2.12
version: v0.3.0
PortageXS::Useflags:
file: lib/PortageXS/Useflags.pm
version: v0.2.12
version: v0.3.0
PortageXS::Version:
file: lib/PortageXS/Version.pm
version: v0.2.12
version: v0.3.0
requires:
Carp: 0
DirHandle: 0
Exporter: 0
Moo: 1.000008
Role::Tiny: 0
Role::Tiny::With: 0
Scalar::Util: 0
Shell::EnvImporter: 0
Term::ANSIColor: 0
Tie::Hash::Method: 0
overload: 0
perl: v5.10.0
strict: 0
Expand All @@ -57,7 +64,7 @@ resources:
bugtracker: https://github.com/gentoo-perl/PortageXS/issues
homepage: https://github.com/gentoo-perl/PortageXS
repository: https://github.com/gentoo-perl/PortageXS.git
version: 0.2.12
version: 0.3.0
x_BuiltWith:
modules:
Carp: 1.29
Expand All @@ -68,6 +75,9 @@ x_BuiltWith:
File::Find: 1.23
File::Temp: 0.2301
Module::Build: 0.4005
Moo: 1.002
Role::Tiny: 1.002005
Role::Tiny::With: NA(undef)
Scalar::Util: 1.27
Shell::EnvImporter: 1.06
Term::ANSIColor: 4.02
Expand All @@ -76,6 +86,7 @@ x_BuiltWith:
Test::More: 0.98
Test::Pod: 1.48
Test::Simple: 0.98
Tie::Hash::Method: 0.02
lib: 0.63
overload: 1.22
perl: 'NA(skipped: perl)'
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ NAME
PortageXS - Portage abstraction layer for perl

VERSION
version 0.2.12
version 0.3.0

NAMING
For CPAN users, the name of this module is likely confusing, and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
use warnings;
use strict;

use lib '../..';
use PortageXS;
use PortageXS::Colors;

my $pxs=PortageXS->new();
my $pxs = PortageXS::Colors->new();
$pxs->print_ok("This is ok.\n");
$pxs->print_info("This is a warning.\n");
$pxs->print_err("This is an error.\n");
Expand All @@ -26,3 +25,14 @@
$pxs->setPrintColor('YELLOW'); print "This is yellow. ";
$pxs->setPrintColor('RESET'); print "This is normal.\n";

print "\ncalling restoreColors();\n";
$pxs->restoreColors();

$pxs->print_ok("This is ok.\n");
$pxs->print_info("This is a warning.\n");
$pxs->print_err("This is an error.\n");
$pxs->setPrintColor('RED'); print "This is red. ";
$pxs->setPrintColor('BLUE'); print "This is blue. ";
$pxs->setPrintColor('YELLOW'); print "This is yellow. ";
$pxs->setPrintColor('RESET'); print "This is normal.\n";

32 changes: 32 additions & 0 deletions examples/fileBelongsToPackage.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/perl

use warnings;
use strict;

use PortageXS;

$|=1;

my $pxs=PortageXS->new();
my $color = $pxs->colors;

if (!-f $ARGV[0]) {
$color->printColored('RED',"Given file does not exist - Aborting!\n");
}
else {
$color->printColored('LIGHTGREEN',"Searching for '".$ARGV[0]."'..");

my @results = $pxs->fileBelongsToPackage($ARGV[0]);

if ($#results>-1) {
print " done!\n\n";
$color->printColored('LIGHTGREEN',"The file '".$ARGV[0]."' was installed by these packages:\n");
print " ".join("\n ",@results)."\n";
}
else {
$color->printColored('RED',"This file has not been installed by portage.\n");
}
}

exit(0);

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use warnings;
use strict;

use lib '../..';
use PortageXS;


Expand Down
1 change: 0 additions & 1 deletion lib/PortageXS/examples/getArch.pl → examples/getArch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use warnings;
use strict;

use lib '../..';
use PortageXS;

my $pxs=PortageXS->new();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use warnings;
use strict;

use lib '../..';
use PortageXS;

my $pxs=PortageXS->new();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use warnings;
use strict;

use lib '../..';
use PortageXS;

my $pxs=PortageXS->new();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use warnings;
use strict;

use lib '../..';
use PortageXS;

my $pxs=PortageXS->new();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use warnings;
use strict;

use lib '../..';
use PortageXS;

my $pxs=PortageXS->new();
Expand Down
Loading

0 comments on commit 0b28d6d

Please sign in to comment.