NEW: www/php-simplepie-1.3.1

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

NEW: www/php-simplepie-1.3.1

Olivier Mehani-5
Hi all,

Attached is a first attempt at packaging the SimplePie RSS-parsing
library for PHP [0].

I doubt I did the packaging entirely properly, but it works as is on my
5.4 machine. Where I might have not done it properly:
* Getting the code from GitHub: there is a lot of messing around with
  DISTNAME, PKGNAME, V and DIST_SUBDIR; I couldn't find a clearly standard way
  other ports (or GitHub...) do it. It might be worth adding a recipe in
  network.conf.template for that.
* Installing the library (only) in /var/www/pear/lib. This is not a PEAR
  library that I know of, but this allows not to have to fiddle with the conf
  for PHP to find it. Other ports do it this way, e.g., www/php-markdown
  or www/php-openid.
* Not installing any support file. I tried (they are commented out), but
  couldn't determine where they should go (all in /var/www?,
  /usr/share?, /usr/share/php-5.3?)

The port also installs a compiled version of the library and symlinks it
as for backward compatibility.

At the moment, SimplePie tries to create a cache in "./cache" for the
PWD of the calling PHP script. I'm not sure whether we should pull it
back to, e.g., [/var/www]/cache, as the current situation requires
multiple directories to be writable by www, or at least for a writable
cache directory to be created manually.

All thoughts and comments are welcome.



Olivier Mehani <[hidden email]>
PGP fingerprint: 4435 CF6A 7C8D DD9B E2DE  F5F9 F012 A6E2 98C6 6655
Confidentiality cannot be guaranteed on emails sent or received unencrypted.

php-simplepie-1.3.1.tar.gz (2K) Download Attachment
attachment1 (633 bytes) Download Attachment