Skip to content

Commit fffa4ff

Browse files
committed
Polishing packaging related files.
1 parent b20dc9a commit fffa4ff

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

extrasetup.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
<?php
22
$extrafiles = array();
3-
4-
$phpDir = Pyrus\Config::current()->php_dir . DIRECTORY_SEPARATOR;
3+
$phpDir = Pyrus\Config::current()->php_dir;
54
$packages = array('PEAR2/Autoload', 'PEAR2/Cache/SHM', 'PEAR2/Net/Transmitter');
65

6+
$oldCwd = getcwd();
7+
chdir($phpDir);
78
foreach ($packages as $pkg) {
8-
$prefix = $phpDir . $pkg;
9-
10-
if (is_dir($prefix)) {
9+
if (is_dir($pkg)) {
1110
foreach (
1211
new RecursiveIteratorIterator(
1312
new RecursiveDirectoryIterator(
14-
$prefix,
13+
$pkg,
1514
RecursiveDirectoryIterator::UNIX_PATHS
1615
),
1716
RecursiveIteratorIterator::LEAVES_ONLY
1817
) as $path
1918
) {
20-
$pathname = $path->getPathname();
21-
$extrafiles['src/' . $pathname] = $pathname;
19+
$extrafiles['src/' . $path->getPathname()] = $path->getRealPath();
2220
}
2321
}
2422

25-
if (is_file($prefix . '.php')) {
26-
$extrafiles['src/' . $pkg . '.php'] = $prefix . '.php';
23+
if (is_file($pkg . '.php')) {
24+
$extrafiles['src/' . $pkg . '.php']
25+
= $phpDir . DIRECTORY_SEPARATOR . $pkg . '.php';
2726
}
28-
}
27+
}
28+
chdir($oldCwd);

package.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<email>[email protected]</email>
1212
<active>yes</active>
1313
</lead>
14-
<date>2012-07-11</date>
15-
<time>00:44:34</time>
14+
<date>2012-08-03</date>
15+
<time>02:50:03</time>
1616
<version>
1717
<release>1.0.0b3</release>
1818
<api>1.0.0</api>
@@ -24,7 +24,7 @@
2424
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL License 2.1</license>
2525
<notes>Bug fixes on edge cases, and some API changes
2626

27-
* Persistent connections are now properly supported. Added a new Registry class to facilitate this.
27+
* (GH #6) Persistent connections are now properly supported. Added a new Registry class to facilitate this.
2828
* The second and third argument of Request::__construct() have been swapped.
2929
* At Request::__construct(), a backslash can now be escaped in an argument value, and arguments can be spread across multiple lines.
3030
* Client::getStreamResponses() and Client::setStreamResponses() are now Client::isStreamingResponses() and Client::setStreamingResponses(), respectively.
@@ -177,14 +177,14 @@
177177
</required>
178178
<optional>
179179
<package>
180-
<name>PEAR2_Cache_SHM</name>
180+
<name>PEAR2_Autoload</name>
181181
<channel>pear2.php.net</channel>
182-
<min>1.0.0a1</min>
182+
<min>0.2.4</min>
183183
</package>
184184
<package>
185-
<name>PEAR2_Autoload</name>
185+
<name>PEAR2_Cache_SHM</name>
186186
<channel>pear2.php.net</channel>
187-
<min>0.2.4</min>
187+
<min>0.1.0</min>
188188
</package>
189189
<extension>
190190
<name>iconv</name>

stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
if ($isNotCli) {
1212
header('Content-Type: text/plain;charset=UTF-8');
1313
}
14-
echo "PEAR2_Net_RouterOS @PACKAGE_VERSION@\n";
14+
echo "@PACKAGE_NAME@ @PACKAGE_VERSION@\n";
1515

1616
if (version_compare(phpversion(), '5.3.0', '<')) {
1717
echo "\nThis package requires PHP 5.3.0 or later.";

0 commit comments

Comments
 (0)