add packages_10.03.2 in preparation for the 10.03.2 interim release
[10.03/packages.git] / libs / newt / patches / 110-disable-snackmodule-python.patch
1 --- a/Makefile.in
2 +++ b/Makefile.in
3 @@ -50,7 +50,7 @@ else
4  TARGET=depend $(PROGS)
5  endif
6  
7 -all:   $(TARGET) _snackmodule.so
8 +all:   $(TARGET)
9  
10  test:  test.o $(LIBNEWT)
11         $(CC) $(CFLAGS) -g -o test test.o $(LIBNEWT) $(LIBS)
12 @@ -67,14 +67,6 @@ showchars:   showchars.o $(LIBNEWT)
13  showkey:       showkey.o $(LIBNEWT)
14         $(CC) $(CFLAGS) -g -o showkey showkey.o $(LIBNEWT) $(LIBS)
15  
16 -_snackmodule.so:   snackmodule.c $(LIBNEWTSH)
17 -       for ver in $(PYTHONVERS) ; do \
18 -               mkdir -p $$ver ;\
19 -               $(CC) $(CFLAGS) -I/usr/include/$$ver $(SHCFLAGS) -c -o $$ver/snackmodule.o snackmodule.c ;\
20 -               $(CC) --shared $(SHCFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L .  -lnewt ;\
21 -       done
22 -       touch $@
23 -
24  whiptail: $(NDIALOGOBJS) $(LIBNEWTSH)
25         $(CC) $(CFLAGS) -g -o whiptail $(NDIALOGOBJS) -L . -lnewt $(LIBS) -lpopt
26  
27 @@ -121,17 +113,12 @@ install: $(LIBNEWT) install-sh whiptail
28         make -C po datadir=$(instroot)/$(datadir) install
29         install -m 644 -D libnewt.pc $(instroot)/$(pkgconfigdir)/libnewt.pc
30  
31 -install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so
32 +install-sh: sharedlib $(WHIPTCLSO)
33         [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
34         install -m 755 $(LIBNEWTSH) $(instroot)/$(libdir)
35         ln -sf $(LIBNEWTSONAME) $(instroot)/$(libdir)/libnewt.so
36         ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/$(LIBNEWTSONAME)
37         [ -n "$(WHIPTCLSO)" ] && install -m 755 whiptcl.so $(instroot)/$(libdir) || :
38 -       for ver in $(PYTHONVERS) ; do \
39 -          [ -d $(instroot)/$(libdir)/$$ver/site-packages ] || install -m 755 -d $(instroot)/$(libdir)/$$ver/site-packages ;\
40 -          install -m 755 $$ver/_snackmodule.so $(instroot)/$(libdir)/$$ver/site-packages ;\
41 -          install -m 644 snack.py $(instroot)/$(libdir)/$$ver/site-packages ;\
42 -       done
43  
44  Makefile: newt.spec
45         echo "You need to rerun ./configure before continuing"