One more necessary change towards guile-1.8.x:

- Fix SWIG interface descriptor and regenerate the wrapper.
- USE_LIBTOOL.
- Remove/comment empty directories from PLIST.

I played with it a little bit with the original and patched versions
and got the same results.

Note: for guile-1.8.1, some more changes are required (-lpthread).

ok?

Ciao,
        Kili


Index: Makefile
===================================================================
RCS file: /var/cvs/OpenBSD/ports/security/crank/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile    13 Nov 2006 12:51:15 -0000      1.15
+++ Makefile    1 Dec 2006 14:21:07 -0000
@@ -3,6 +3,7 @@
 COMMENT=       "classical cipher cryptanalysis toolkit"
 
 DISTNAME=              crank-0.2.1
+PKGNAME=               ${DISTNAME}p0
 CATEGORIES=            security
 
 HOMEPAGE=              http://crank.sourceforge.net/
@@ -20,10 +21,16 @@
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=crank/}
 
 LIB_DEPENDS=           gtk.>=1.2,gdk.>=1.2::x11/gtk+ \
-                       guile.>=9::lang/guile
+                       guile.>=15,guile-ltdl.>=1::lang/guile
 
+BUILD_DEPENDS=         ::devel/swig
+
+USE_LIBTOOL=           Yes
 CONFIGURE_STYLE=       gnu
 CONFIGURE_ENV=         CPPFLAGS="-I${LOCALBASE}/include" \
                        LDFLAGS="-L${LOCALBASE}/lib"
+
+pre-configure:
+       swig -guile -gh ${WRKSRC}/src/crank.i
 
 .include <bsd.port.mk>
Index: patches/patch-src_crank_i
===================================================================
RCS file: patches/patch-src_crank_i
diff -N patches/patch-src_crank_i
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_crank_i   1 Dec 2006 14:21:07 -0000
@@ -0,0 +1,39 @@
+$OpenBSD$
+--- src/crank.i.orig   Sun Aug 19 18:47:39 2001
++++ src/crank.i        Fri Dec  1 12:51:10 2006
+@@ -161,7 +161,7 @@ double fitness(instance *fitness, char *
+ gui_item *build_gui_item(instance *gui, instance *i); 
+ 
+ struct parameter_description {
+-    enum parameter_type type;
++    parameter_type type;
+     char *name;
+     char *data_one;
+     char *data_two;
+@@ -192,7 +192,7 @@ struct componant {
+     char *name;          
+     
+     /* A componant's type determines its use by Crank */
+-    enum componant_type type;
++    componant_type type;
+ 
+     /* String user can read as a summary of componant's behaviour */
+     char *description; 
+@@ -210,7 +210,7 @@ struct componant {
+ 
+ 
+ componant *lookup_componant(componant *componant_list, int n);
+-const char *componant_type_lookup(enum componant_type type);
++const char *componant_type_lookup(componant_type type);
+ void free_componant(componant *componant_record);
+ void free_componant_list(componant *componant_list);
+ 
+@@ -263,7 +263,7 @@ void unlock_callbacks(void);
+ int islocked(void);
+ 
+ char *parameter_enum_value_name(parameter_description *param_descrip, int 
value_index);
+-const char *parameter_type_lookup(enum parameter_type type);
++const char *parameter_type_lookup(parameter_type type);
+ 
+ char *file_load_text(char *filename);
+ int file_save_text(char *filename, char *text);
Index: pkg/PLIST
===================================================================
RCS file: /var/cvs/OpenBSD/ports/security/crank/pkg/PLIST,v
retrieving revision 1.6
diff -u -r1.6 PLIST
--- pkg/PLIST   18 Jul 2005 17:02:49 -0000      1.6
+++ pkg/PLIST   1 Dec 2006 14:21:07 -0000
@@ -1,8 +1,8 @@
 @comment $OpenBSD: PLIST,v 1.6 2005/07/18 17:02:49 aanriot Exp $
 bin/crank
 @info info/crank.info
-lib/crank/
-lib/crank/plugins/
[EMAIL PROTECTED] lib/crank/
[EMAIL PROTECTED] lib/crank/plugins/
 share/crank/
 share/crank/24_sort_ascending.xpm
 share/crank/arrows_ver.xpm
@@ -20,4 +20,3 @@
 share/crank/source.xpm
 share/crank/stop.xpm
 share/crank/trift.dat
-share/doc/crank/

-- 
That sounds like "The Fly" for files.
                - Karsten Daniel about join(1).

Reply via email to