Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Commit

Permalink
Made ebuilds use package name/version in SRC_URI
Browse files Browse the repository at this point in the history
  • Loading branch information
olemarkus committed Jun 18, 2010
1 parent ee01c97 commit cbe492c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions epear.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@
$php53flags = array();
$pearDeps = array();


$usedep["dom"] = "xml";
$usedep["mbstring"] = "unicode";


foreach ($pf->getDeps() as $dep) {
if ($dep["optional"] == "yes") continue;

Expand Down Expand Up @@ -103,19 +105,17 @@

$doins = "";

foreach ($filelist as $filename => $file) {

}


$prefix = ($channelUri == "pear.php.net") ? $prefix = "PEAR-" : "";

if (!is_dir("overlay/dev-php/" . $prefix . $pf->getName())) {
mkdir("overlay/dev-php/" . $prefix . $pf->getName(), 0777, true);
}

$ename = $prefix . $pf->getName() . "-" . $pf->getVersion();
$euri = str_replace($ename, "\${P}", $uri);

$ebuildname = "overlay/dev-php/" . $prefix . $pf->getName() . "/" .
$prefix . $pf->getName() . "-" . $pf->getVersion() . ".ebuild";
$ename . ".ebuild";

$ebuild = `head -n4 /usr/portage/skel.ebuild`;

Expand All @@ -126,7 +126,7 @@
$ebuild .= "DESCRIPTION=\"" . $pf->getSummary() . "\"\n";
$ebuild .= "LICENSE=\"" . str_replace(" License", "", $pf->getLicense()) . "\"\n";
$ebuild .= "HOMEPAGE=\"" . $parsedName['channel'] . "\"\n";
$ebuild .= "SRC_URI=\"" . $uri . "\"\n";
$ebuild .= "SRC_URI=\"" . $euri . "\"\n";
$ebuild .= "DEPEND=\"" . $phpdep . "\n" . $peardep . "\"\n";
$ebuild .= "RDEPEND=\"\${DEPEND}\"\n";
$ebuild .= "\n";
Expand Down

0 comments on commit cbe492c

Please sign in to comment.