Author: glen                         Date: Tue Mar 29 18:58:56 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/lessphp:
   fixes.patch (NONE -> 1.1)  (NEW), lessphp.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/lessphp/fixes.patch
diff -u /dev/null packages/lessphp/fixes.patch:1.1
--- /dev/null   Tue Mar 29 20:58:56 2011
+++ packages/lessphp/fixes.patch        Tue Mar 29 20:58:51 2011
@@ -0,0 +1,35 @@
+--- lessphp-0.2.0/plessc~      2010-03-05 10:09:07.000000000 +0200
++++ lessphp-0.2.0/plessc       2011-03-29 21:57:35.707217625 +0300
+@@ -1,14 +1,11 @@
+-#!/usr/bin/php -q
++#!/usr/bin/php
+ <?php
+ //
+ // command line utility to compile less to stdout
+ // leaf corcoran <leafo.net>
+ $VERSION = "v0.1.6";
+ 
+-error_reporting(E_ALL);
+-$path  = realpath(dirname(__FILE__)).'/';
+-
+-require $path."lessc.inc.php";
++require_once "lessc.inc.php";
+ 
+ $fa = "Fatal Error: ";
+ function err($msg) {
+@@ -65,7 +62,7 @@
+ }
+ 
+ if (has("v")) {
+-      exit($VERSION."\n");
++      die($VERSION."\n");
+ }
+ 
+ if (has("r", $loc)) {
+@@ -136,6 +133,3 @@
+       err($fa.$ex->getMessage());
+       exit(1);
+ }
+-
+-
+-?>

================================================================
Index: packages/lessphp/lessphp.spec
diff -u /dev/null packages/lessphp/lessphp.spec:1.1
--- /dev/null   Tue Mar 29 20:58:56 2011
+++ packages/lessphp/lessphp.spec       Tue Mar 29 20:58:51 2011
@@ -0,0 +1,47 @@
+# $Revision$, $Date$
+Summary:       lessphp is a compiler for LESS written in PHP
+Name:          lessphp
+Version:       0.2.0
+Release:       1
+License:       MIT/GPL v3
+Group:         Applications
+Source0:       http://leafo.net/lessphp/src/%{name}-%{version}.tar.gz
+# Source0-md5: 9733b83e8fc89a40f32adc11a337977b
+Patch0:                fixes.patch
+URL:           http://leafo.net/lessphp/
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+lessphp is a compiler that generates CSS from a small superset
+language that adds many additional features seen in other languages.
+It is based off an original Ruby implementation called LESS.
+
+%prep
+%setup -qc
+mv %{name}/* .
+%patch0 -p1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{php_data_dir}}
+install -p plessc $RPM_BUILD_ROOT%{_bindir}
+cp -p lessc.inc.php $RPM_BUILD_ROOT%{php_data_dir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README
+%attr(755,root,root) %{_bindir}/plessc
+%{php_data_dir}/lessc.inc.php
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/03/29 18:58:51  glen
+- new
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to