First working version of autotools scripts
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@136 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
3507
pace-gui/configure
vendored
3507
pace-gui/configure
vendored
File diff suppressed because it is too large
Load Diff
@@ -23,5 +23,6 @@ AC_SUBST(PYGTK_LIBS)
|
|||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile
|
AC_CONFIG_FILES([Makefile
|
||||||
src/Makefile])
|
src/Makefile
|
||||||
|
src/pinpad_globals.py])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|||||||
@@ -1,21 +1,14 @@
|
|||||||
EXTRA_DIST = pinpad.in
|
|
||||||
|
|
||||||
bin_SCRIPTS = pinpad.py
|
bin_SCRIPTS = pinpad.py
|
||||||
|
|
||||||
|
pinpaddir = $(prefix)/bin
|
||||||
|
|
||||||
|
pinpad_PYTHON = \
|
||||||
|
pinpad_globals.py
|
||||||
|
|
||||||
uidir = $(datadir)/pinpad
|
uidir = $(datadir)/pinpad
|
||||||
ui_DATA = pinpad.glade
|
ui_DATA = pinpad.glade
|
||||||
|
|
||||||
all-local:
|
EXTRA_DIST = \
|
||||||
perl -ne "s|PYTHONDIR|$(pythondir)| ; print" $(srcdir)/pinpad.in > tmp
|
$(bin_SCRIPTS) \
|
||||||
perl -ne "s|PYTHONBIN|$(PYTHON)| ; print" tmp > pinpad
|
$(pinpad_PYTHON) \
|
||||||
rm -f tmp
|
$(ui_DATA)
|
||||||
|
|
||||||
install-exec-local: all-local
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
|
||||||
$(INSTALL_SCRIPT) pinpad $(DESTDIR)$(bindir)/pinpad
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
rm -f $(DESTDIR)$(bindir)/pinpad
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
rm -f pinpad
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
import sys, os
|
import sys, os
|
||||||
import subprocess
|
import subprocess
|
||||||
import time
|
|
||||||
try:
|
try:
|
||||||
import pygtk
|
import pygtk
|
||||||
pygtk.require("2.0")
|
pygtk.require("2.0")
|
||||||
@@ -14,8 +13,8 @@ try:
|
|||||||
except:
|
except:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
#GUITARGET is set by the build system
|
#glade_dir is set by the build system
|
||||||
PATH = GUITARGET
|
from pinpad_globals import glade_dir
|
||||||
|
|
||||||
class PinpadGTK:
|
class PinpadGTK:
|
||||||
"""This a simple GTK based GUI to enter a PIN"""
|
"""This a simple GTK based GUI to enter a PIN"""
|
||||||
@@ -30,7 +29,7 @@ class PinpadGTK:
|
|||||||
self.pin = ""
|
self.pin = ""
|
||||||
|
|
||||||
#Set the Glade file
|
#Set the Glade file
|
||||||
self.gladefile = PATH+"pinpad.glade"
|
self.gladefile = glade_dir + "/pinpad.glade"
|
||||||
self.builder = gtk.Builder()
|
self.builder = gtk.Builder()
|
||||||
self.builder.add_from_file(self.gladefile)
|
self.builder.add_from_file(self.gladefile)
|
||||||
|
|
||||||
|
|||||||
4
pace-gui/src/pinpad_globals.py.in
Normal file
4
pace-gui/src/pinpad_globals.py.in
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
name = "pinpad"
|
||||||
|
version = "@VERSION@"
|
||||||
|
image_dir = "@prefix@/share/pixmaps"
|
||||||
|
glade_dir = "@prefix@/share/" + name
|
||||||
Reference in New Issue
Block a user