summaryrefslogtreecommitdiff
path: root/eudev/eudev-remove_gperf_dep.patch
blob: 56fca0e88a74666a133af10f305b19944b976e5d (plain)
    1 diff -Nru eudev-3.1.1.orig/configure.ac eudev-3.1.1/configure.ac
    2 --- eudev-3.1.1.orig/configure.ac	2015-06-08 13:46:49.535952811 +0200
    3 +++ eudev-3.1.1/configure.ac	2015-06-08 13:47:03.698782701 +0200
    4 @@ -244,10 +244,6 @@
    5  AM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
    6  
    7  # ------------------------------------------------------------------------------
    8 -AC_PATH_TOOL(GPERF, gperf)
    9 -if test -z "$GPERF" ; then
   10 -        AC_MSG_ERROR([*** gperf not found])
   11 -fi
   12  
   13  # ------------------------------------------------------------------------------
   14  GTK_DOC_CHECK([1.18],[--flavour no-tmpl])
   15 diff -Nru eudev-3.1.1.orig/src/udev/Makefile.am eudev-3.1.1/src/udev/Makefile.am
   16 --- eudev-3.1.1.orig/src/udev/Makefile.am	2015-06-08 13:46:49.532619596 +0200
   17 +++ eudev-3.1.1/src/udev/Makefile.am	2015-06-08 13:47:03.698782701 +0200
   18 @@ -112,18 +112,6 @@
   19  	keyboard-keys-from-name.h \
   20  	keyboard-keys-to-name.h
   21  
   22 -keyboard-keys.txt: Makefile
   23 -	$(AM_V_at)$(MKDIR_P) $(dir $@)
   24 -	$(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
   25 -
   26 -keyboard-keys-from-name.gperf: keyboard-keys.txt Makefile
   27 -	$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
   28 -
   29 -keyboard-keys-from-name.h: keyboard-keys-from-name.gperf Makefile
   30 -	$(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
   31 -
   32 -keyboard-keys-to-name.h: keyboard-keys.txt Makefile
   33 -	$(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
   34  
   35  
   36  BUILT_SOURCES = \

Generated by cgit