Commit 5f60e06bd0a6736289c3669f21a23e7fcf2f63ab

Authored by perry.werneck@gmail.com
1 parent b8a71c9d

Implementando empacotamento .deb do plugin rexx

debian.control
... ... @@ -2,7 +2,7 @@ Source: pw3270
2 2 Section: unknown
3 3 Priority: optional
4 4 Maintainer: Perry Werneck <perry.werneck@gmail.com>
5   -Build-Depends: debhelper (>= 7), autotools-dev, autoconf, libgtk-3-dev, gettext, libssl-dev, desktop-file-utils, libdbus-glib-1-dev, libssl-dev, xsltproc, librsvg2-bin, libreoffice-common, libreoffice-core, libreoffice-dev, uno-libs3, ure, zip
  5 +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, libgtk-3-dev, gettext, libssl-dev, desktop-file-utils, libdbus-glib-1-dev, libssl-dev, xsltproc, librsvg2-bin, libreoffice-common, libreoffice-core, libreoffice-dev, uno-libs3, ure, zip, oorexx-dev
6 6  
7 7 Package: pw3270
8 8 Architecture: any
... ... @@ -31,6 +31,12 @@ Depends: ${misc:Depends}, pw3270 (= ${binary:Version}), libdbus-1-3
31 31 Description: DBUS plugin for pw3270.
32 32 This package contains the plugin allowing scripting of a pw3270 session using dbus calls.
33 33  
  34 +Package: pw3270-plugin-rexx
  35 +Architecture: any
  36 +Depends: ${misc:Depends}, lib3270 (= ${binary:Version}), oorexx >= 4.1.2
  37 +Description: REXX script support for pw3270.
  38 + This package provides Rexx class and associated libraries allowing rexx scripts to access tn3270e hosts.
  39 +
34 40 Package: libreoffice-extension-pw3270
35 41 Architecture: any
36 42 Depends: ${misc:Depends}, pw3270 (= ${binary:Version}), libreoffice-core
... ...
debian.rules
... ... @@ -24,6 +24,8 @@ build-stamp:
24 24 dh_testdir
25 25  
26 26 # Add here commands to compile the package.
  27 + aclocal
  28 + autoconf
27 29 ./configure --prefix=/usr
28 30 rm -f debian/*.install
29 31 make Release
... ... @@ -39,7 +41,7 @@ clean:
39 41 rm -f build-stamp
40 42  
41 43 # Add here commands to clean up after the build process.
42   - if [ -e Makefile ]; then make clean; fi
  44 + if [ -e Makefile ]; then make clean ; fi
43 45 # --- end custom part for cleaning up
44 46  
45 47 dh_clean
... ... @@ -62,7 +64,22 @@ install: build
62 64 install -d --mode=755 $(PWD)/debian/pw3270/pw3270-plugin-dbus/usr/lib/pw3270-plugins
63 65 install --mode=755 .bin/Release/plugins/dbus3270.so $(PWD)/debian/pw3270/pw3270-plugin-dbus/usr/lib/pw3270-plugins/dbus3270.so
64 66  
65   - find debian
  67 + # Install REXX plugin
  68 + #install -d --mode=755 $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/lib/pw3270-plugins
  69 + #install --mode=755 .bin/Release/plugins/rx3270.so $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/lib/pw3270-plugins/rx3270.so
  70 + #install --mode=755 .bin/Release/lib/librx3270.so* $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/lib
  71 +
  72 + #install -d --mode=755 $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/bin
  73 + #install --mode=755 src/plugins/rx3270/rx3270.cls $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/bin/rx3270.cls
  74 +
  75 + #install -d --mode=755 $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/share/pw3270/ui
  76 + #install --mode=644 ui/80rexx.xml $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/share/pw3270/ui
  77 +
  78 + make DESTDIR=$(PWD)/debian/pw3270-plugin-rexx install-rexx
  79 + ln -s /usr/share/ooRexx/rx3270.cls $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/bin/rx3270.cls
  80 +
  81 + find $(PWD)/debian/pw3270/pw3270-plugin-rexx -type f | sed -e "s@^$(PWD)/debian/pw3270/pw3270-plugin-rexx/@/@g" > $(PWD)/debian/pw3270-plugin-rexx.install
  82 +
66 83 # --- end custom part for installing
67 84  
68 85 # Build architecture-independent files here.
... ... @@ -101,4 +118,3 @@ binary-arch: build install
101 118  
102 119 binary: binary-indep binary-arch
103 120 .PHONY: build clean binary-indep binary-arch binary install
104   -
... ...
po/pt_BR.po
... ... @@ -5,7 +5,7 @@ msgid &quot;&quot;
5 5 msgstr ""
6 6 "Project-Id-Version: pw3270 5.0\n"
7 7 "Report-Msgid-Bugs-To: \n"
8   -"POT-Creation-Date: 2013-06-28 08:07-0300\n"
  8 +"POT-Creation-Date: 2013-06-28 09:23-0300\n"
9 9 "PO-Revision-Date: 2013-05-08 14:30-0300\n"
10 10 "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n"
11 11 "Language-Team: Português <>\n"
... ...
src/plugins/rx3270/Makefile.in
... ... @@ -47,7 +47,7 @@ include ../../include/plugin.mak
47 47  
48 48 #---[ Debug Targets ]----------------------------------------------------------
49 49  
50   -$(BINDBG)/$(PLUGIN_NAME): $(foreach SRC, $(basename $(PLUGIN_SRC)), $(OBJDBG)/$(SRC).o) $(BINDBG)$(DLL_NAME)
  50 +$(BINDBG)/$(PLUGIN_NAME): $(foreach SRC, $(basename $(PLUGIN_SRC)), $(OBJDBG)/$(SRC).o) $(BINDBG)$(DLL_NAME).$(VERSION)
51 51 @echo " CCLD `basename $@`"
52 52 @$(MKDIR) `dirname $@`
53 53 @$(CXX) $(DLL_FLAGS) @LDSOFLAGS@ @DBGRPATH@ $(LDFLAGS) -o $@ $^ $(LIBS) $(LIB3270_LIBS) $(GTK_LIBS) $(GLIB_LIBS) $(PW3270_LIBS)
... ... @@ -59,7 +59,7 @@ $(BINDBG)$(DLL_NAME).$(VERSION): $(foreach SRC, $(basename $(EXTAPI_SRC)), $(OBJ
59 59  
60 60 #---[ Release Targets ]--------------------------------------------------------
61 61  
62   -$(BINRLS)/$(PLUGIN_NAME): $(foreach SRC, $(basename $(PLUGIN_SRC)), $(OBJRLS)/$(SRC).o) $(BINRLS)$(DLL_NAME)
  62 +$(BINRLS)/$(PLUGIN_NAME): $(foreach SRC, $(basename $(PLUGIN_SRC)), $(OBJRLS)/$(SRC).o) $(BINRLS)$(DLL_NAME).$(VERSION)
63 63 @echo " CCLD `basename $@`"
64 64 @$(MKDIR) `dirname $@`
65 65 $(CXX) $(DLL_FLAGS) @LDSOFLAGS@ $(LDFLAGS) @RLS_LDFLAGS@ -o $@ $^ $(LIBS) $(LIB3270_LIBS) $(GTK_LIBS) $(GLIB_LIBS) $(PW3270_LIBS)
... ... @@ -69,7 +69,7 @@ $(BINRLS)$(DLL_NAME).$(VERSION): $(foreach SRC, $(basename $(EXTAPI_SRC)), $(OBJ
69 69 @$(MKDIR) `dirname $@`
70 70 $(CXX) $(DLL_FLAGS) @LDSOFLAGS@ $(LDFLAGS) @RLS_LDFLAGS@ -o $@ $^ $(LIBS) $(LIB3270_LIBS)
71 71  
72   -install: $(BINRLS)$(DLL_NAME).$(VERSION) $(BINRLS)/$(PLUGIN_NAME)
  72 +install:
73 73 @$(MKDIR) $(DESTDIR)$(libdir)/$(PACKAGE_NAME)-plugins
74 74 @$(INSTALL_PROGRAM) $(BINRLS)/$(PLUGIN_NAME) $(DESTDIR)$(libdir)/$(PACKAGE_NAME)-plugins
75 75  
... ...