Browse Source

update Cdk Perl binding

master
parent
commit
5812a5ea20
  1. 13
      perl-curses/perl-curses.patch
  2. 15
      perl-curses/perl-curses.spec

13
perl-curses/perl-curses.patch

@ -1,13 +0,0 @@
Index: cdk-perl-20031210/Cdk.xs
--- cdk-perl-20031210/Cdk.xs.orig 2003-12-10 21:40:41.000000000 +0100
+++ cdk-perl-20031210/Cdk.xs 2012-06-01 23:40:43.000000000 +0200
@@ -9,7 +9,8 @@
#include <XSUB.h>
#define CDK_PERL_EXT
-#include <cdk/cdk.h>
+#include <cdk.h>
+#include <cdk/menu.h>
/* Prior to perl5.005, the PL_ prefix wasn't used for things such
as PL_rs. Define the PL_ macros that we use if necessary. */

15
perl-curses/perl-curses.spec

@ -28,7 +28,7 @@
%define V_curses_ui_dtv 0.10
%define V_curses_widgets 1.997
%define V_curses_forms 1.997
%define V_cdk_perl 20031210
%define V_cdk_perl 20120324
# package information
Name: perl-curses
@ -41,7 +41,7 @@ Class: BASE
Group: Perl
License: GPL/Artistic
Version: %{V_perl}
Release: 20120601
Release: 20120603
# list of sources
Source0: http://www.cpan.org/modules/by-module/Curses/Curses-%{V_curses}.tgz
@ -50,7 +50,6 @@ Source2: http://www.cpan.org/authors/id/G/GS/GSAINIO/Curses-UI-DelimitedTex
Source3: http://www.cpan.org/authors/id/C/CO/CORLISS/CursesWidgets-%{V_curses_widgets}.tar.gz
Source4: http://www.cpan.org/authors/id/C/CO/CORLISS/CursesForms-%{V_curses_forms}.tar.gz
Source5: ftp://invisible-island.net/cdk/cdk-perl-%{V_cdk_perl}.tgz
Patch0: perl-curses.patch
# build information
BuildPreReq: OpenPKG, openpkg >= 20100101, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
@ -107,7 +106,6 @@ PreReq: ncurses, cdk >= 4.9.11.20031210, perl-term
%setup -q -T -D -a 3
%setup -q -T -D -a 4
%setup -q -T -D -a 5
%patch -p0
%build
@ -153,7 +151,14 @@ PreReq: ncurses, cdk >= 4.9.11.20031210, perl-term
-e 's;-L/usr/local/lib;%{l_ldflags};' \
-e 's;-I/usr/include/ncurses;%{l_cppflags ncurses};' \
-e 's;-I/usr/local/include/cdk;%{l_cppflags cdk};' \
Makefile.PL
Makefile.PL.in
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
CPPFLAGS="%{l_cppflags cdk .}" \
LDFLAGS="%{l_ldflags}" \
LIBS="-lncurses" \
./configure \
--prefix=%{l_prefix}
) || exit $?
%{l_prefix}/bin/perl-openpkg -d cdk-perl-%{V_cdk_perl} configure build install

Loading…
Cancel
Save