Edgar: switch to meson

...still not working with recent e, that changed the way modules are loaded
master
Davide Andreoli 3 years ago
parent d0cb51f2ad
commit 53bdf254bd
  1. 60
      .gitignore
  2. 165
      COPYING.LESSER
  3. 36
      GADGETS/audio/Makefile
  4. 36
      GADGETS/calculator/Makefile
  5. 36
      GADGETS/cpu/Makefile
  6. 36
      GADGETS/dropbox/Makefile
  7. 36
      GADGETS/led_clock/Makefile
  8. 36
      GADGETS/mem/Makefile
  9. 36
      GADGETS/netspeed/Makefile
  10. 246
      INSTALL
  11. 25
      Makefile.am
  12. 24
      README
  13. 16
      autogen.sh
  14. 84
      configure.ac
  15. 0
      gadgets/audio/__init__.py
  16. 0
      gadgets/audio/audio.edc
  17. 0
      gadgets/audio/images/cover.png
  18. 0
      gadgets/audio/images/icon_mixer.png
  19. 0
      gadgets/audio/images/icon_next.png
  20. 0
      gadgets/audio/images/icon_pause.png
  21. 0
      gadgets/audio/images/icon_play.png
  22. 0
      gadgets/audio/images/icon_prev.png
  23. 0
      gadgets/audio/images/inset_round_hilight.png
  24. 0
      gadgets/audio/images/inset_round_shading.png
  25. 0
      gadgets/audio/images/inset_round_shadow.png
  26. 0
      gadgets/audio/images/led_dot_white.png
  27. 0
      gadgets/audio/images/speaker.png
  28. 30
      gadgets/audio/meson.build
  29. 0
      gadgets/calculator/__init__.py
  30. 0
      gadgets/calculator/calculator.edc
  31. 0
      gadgets/calculator/fonts/Vera.ttf
  32. 0
      gadgets/calculator/images/0.png
  33. 0
      gadgets/calculator/images/1.png
  34. 0
      gadgets/calculator/images/2.png
  35. 0
      gadgets/calculator/images/3.png
  36. 0
      gadgets/calculator/images/4.png
  37. 0
      gadgets/calculator/images/5.png
  38. 0
      gadgets/calculator/images/6.png
  39. 0
      gadgets/calculator/images/7.png
  40. 0
      gadgets/calculator/images/8.png
  41. 0
      gadgets/calculator/images/9.png
  42. 0
      gadgets/calculator/images/bg.png
  43. 0
      gadgets/calculator/images/canc.png
  44. 0
      gadgets/calculator/images/divide.png
  45. 0
      gadgets/calculator/images/m-c.png
  46. 0
      gadgets/calculator/images/m-minus.png
  47. 0
      gadgets/calculator/images/m-plus.png
  48. 0
      gadgets/calculator/images/m-r.png
  49. 0
      gadgets/calculator/images/minus.png
  50. 0
      gadgets/calculator/images/multiply.png
  51. 0
      gadgets/calculator/images/plus.png
  52. 0
      gadgets/calculator/images/point.png
  53. 0
      gadgets/calculator/images/result.png
  54. 21
      gadgets/calculator/meson.build
  55. 0
      gadgets/cpu/__init__.py
  56. 0
      gadgets/cpu/cpu.edc
  57. 0
      gadgets/cpu/images/bar_bg.png
  58. 0
      gadgets/cpu/images/cpu.png
  59. 0
      gadgets/cpu/images/green_on.png
  60. 0
      gadgets/cpu/images/mockup.xcf
  61. 0
      gadgets/cpu/images/red_on.png
  62. 0
      gadgets/cpu/images/yellow_on.png
  63. 21
      gadgets/cpu/meson.build
  64. 0
      gadgets/dropbox/__init__.py
  65. 0
      gadgets/dropbox/docs/dropboxd-protocol
  66. 0
      gadgets/dropbox/dropbox.edc
  67. 0
      gadgets/dropbox/images/dropbox.png
  68. 0
      gadgets/dropbox/images/dropbox_gray.png
  69. 0
      gadgets/dropbox/images/emblem-syncing.png
  70. 0
      gadgets/dropbox/images/emblem-unsyncable.png
  71. 0
      gadgets/dropbox/images/emblem-uptodate.png
  72. 21
      gadgets/dropbox/meson.build
  73. 0
      gadgets/led_clock/__init__.py
  74. 0
      gadgets/led_clock/images/bg.png
  75. 0
      gadgets/led_clock/images/bg_orig.png
  76. 0
      gadgets/led_clock/images/icon.png
  77. 0
      gadgets/led_clock/images/led_blu.png
  78. 0
      gadgets/led_clock/images/led_green.png
  79. 0
      gadgets/led_clock/images/led_off.png
  80. 0
      gadgets/led_clock/images/led_red.png
  81. 0
      gadgets/led_clock/images/template.png
  82. 0
      gadgets/led_clock/led_clock.edc
  83. 21
      gadgets/led_clock/meson.build
  84. 0
      gadgets/mem/__init__.py
  85. 0
      gadgets/mem/images/bar_bg.png
  86. 0
      gadgets/mem/images/blu_on.png
  87. 0
      gadgets/mem/images/mem.png
  88. 0
      gadgets/mem/mem.edc
  89. 21
      gadgets/mem/meson.build
  90. 0
      gadgets/netspeed/__init__.py
  91. 0
      gadgets/netspeed/images/base.png
  92. 0
      gadgets/netspeed/images/over.png
  93. 0
      gadgets/netspeed/images/rx.png
  94. 0
      gadgets/netspeed/images/tx.png
  95. 21
      gadgets/netspeed/meson.build
  96. 0
      gadgets/netspeed/netspeed.edc
  97. 14
      m4/ac_attribute.m4
  98. 324
      m4/ax_python_devel.m4
  99. 50
      m4/ax_python_module.m4
  100. 72
      meson.build
  101. Some files were not shown because too many files have changed in this diff Show More

60
.gitignore vendored

@ -1,59 +1 @@
# Object files
*.o
*.ko
*.obj
*.elf
# Libraries
*.lib
*.a
# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib
# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex
*~
*.edj
*.pyc
/Makefile
/src/Makefile
/python/Makefile
Makefile.in
*.lo
config.h
config.h.in
configure
/compile
/config.cache
/config.guess
/config.log
/config.rpath
/config.status
/config.sub
aclocal.m4
autom4te.cache/
depcomp
install-sh
libtool
ltmain.sh
m4/libtool.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4
missing
module.desktop
src/.deps/
src/.libs/
src/module.la
stamp-h1
build/

@ -1,165 +0,0 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

@ -1,36 +0,0 @@
# Simple Makefile for Enlightenment (edgar) gadgets
# gadget specific config
GADGET_NAME = audio
EXTRA_FILES =
# nothing should be changed below this point
GADGET_FILES = __init__.pyc $(GADGET_NAME).edj
prefix = $(shell pkg-config --variable=libdir enlightenment)
gadget_folder = ${prefix}/enlightenment/gadgets/$(GADGET_NAME)
.PHONY: all install clean
all: $(GADGET_FILES) $(EXTRA_FILES)
install: all
@mkdir -p -v ${gadget_folder}
@cp --preserve=mode -v $(GADGET_FILES) $(EXTRA_FILES) $(gadget_folder)
uninstall: all
@rm -rfv ${gadget_folder}
clean:
@rm -fv *.edj *.pyc
EDJE_CC = edje_cc
EDJE_FLAGS = -v -id images/ -fd fonts/
%.edj: %.edc images/*
$(EDJE_CC) $(EDJE_FLAGS) $<
@chmod -v og+r $@
%.pyc: %.py
python3 -c "from py_compile import compile; compile('$<', '$@')"

@ -1,36 +0,0 @@
# Simple Makefile for Enlightenment (edgar) gadgets
# gadget specific config
GADGET_NAME = calculator
EXTRA_FILES =
# nothing should be changed below this point
GADGET_FILES = __init__.pyc $(GADGET_NAME).edj
prefix = $(shell pkg-config --variable=libdir enlightenment)
gadget_folder = ${prefix}/enlightenment/gadgets/$(GADGET_NAME)
.PHONY: all install clean
all: $(GADGET_FILES) $(EXTRA_FILES)
install: all
@mkdir -p -v ${gadget_folder}
@cp --preserve=mode -v $(GADGET_FILES) $(EXTRA_FILES) $(gadget_folder)
uninstall: all
@rm -rfv ${gadget_folder}
clean:
@rm -fv *.edj *.pyc
EDJE_CC = edje_cc
EDJE_FLAGS = -v -id images/ -fd fonts/
%.edj: %.edc images/*
$(EDJE_CC) $(EDJE_FLAGS) $<
@chmod -v og+r $@
%.pyc: %.py
python3 -c "from py_compile import compile; compile('$<', '$@')"

@ -1,36 +0,0 @@
# Simple Makefile for Enlightenment (edgar) gadgets
# gadget specific config
GADGET_NAME = cpu
EXTRA_FILES =
# nothing should be changed below this point
GADGET_FILES = __init__.pyc $(GADGET_NAME).edj
prefix = $(shell pkg-config --variable=libdir enlightenment)
gadget_folder = ${prefix}/enlightenment/gadgets/$(GADGET_NAME)
.PHONY: all install clean
all: $(GADGET_FILES) $(EXTRA_FILES)
install: all
@mkdir -p -v ${gadget_folder}
@cp --preserve=mode -v $(GADGET_FILES) $(EXTRA_FILES) $(gadget_folder)
uninstall: all
@rm -rfv ${gadget_folder}
clean:
@rm -fv *.edj *.pyc
EDJE_CC = edje_cc
EDJE_FLAGS = -v -id images/ -fd fonts/
%.edj: %.edc images/*
$(EDJE_CC) $(EDJE_FLAGS) $<
@chmod -v og+r $@
%.pyc: %.py
python3 -c "from py_compile import compile; compile('$<', '$@')"

@ -1,36 +0,0 @@
# Simple Makefile for Enlightenment (edgar) gadgets
# gadget specific config
GADGET_NAME = dropbox
EXTRA_FILES =
# nothing should be changed below this point
GADGET_FILES = __init__.pyc $(GADGET_NAME).edj
prefix = $(shell pkg-config --variable=libdir enlightenment)
gadget_folder = ${prefix}/enlightenment/gadgets/$(GADGET_NAME)
.PHONY: all install clean
all: $(GADGET_FILES) $(EXTRA_FILES)
install: all
@mkdir -p -v ${gadget_folder}
@cp --preserve=mode -v $(GADGET_FILES) $(EXTRA_FILES) $(gadget_folder)
uninstall: all
@rm -rfv ${gadget_folder}
clean:
@rm -fv *.edj *.pyc
EDJE_CC = edje_cc
EDJE_FLAGS = -v -id images/ -fd fonts/
%.edj: %.edc images/*
$(EDJE_CC) $(EDJE_FLAGS) $<
@chmod -v og+r $@
%.pyc: %.py
python3 -c "from py_compile import compile; compile('$<', '$@')"

@ -1,36 +0,0 @@
# Simple Makefile for Enlightenment (edgar) gadgets
# gadget specific config
GADGET_NAME = led_clock
EXTRA_FILES =
# nothing should be changed below this point
GADGET_FILES = __init__.pyc $(GADGET_NAME).edj
prefix = $(shell pkg-config --variable=libdir enlightenment)
gadget_folder = ${prefix}/enlightenment/gadgets/$(GADGET_NAME)
.PHONY: all install clean
all: $(GADGET_FILES) $(EXTRA_FILES)
install: all
@mkdir -p -v ${gadget_folder}
@cp --preserve=mode -v $(GADGET_FILES) $(EXTRA_FILES) $(gadget_folder)
uninstall: all
@rm -rfv ${gadget_folder}
clean:
@rm -fv *.edj *.pyc
EDJE_CC = edje_cc
EDJE_FLAGS = -v -id images/ -fd fonts/
%.edj: %.edc images/*
$(EDJE_CC) $(EDJE_FLAGS) $<
@chmod -v og+r $@
%.pyc: %.py
python3 -c "from py_compile import compile; compile('$<', '$@')"

@ -1,36 +0,0 @@
# Simple Makefile for Enlightenment (edgar) gadgets
# gadget specific config
GADGET_NAME = mem
EXTRA_FILES =
# nothing should be changed below this point
GADGET_FILES = __init__.pyc $(GADGET_NAME).edj
prefix = $(shell pkg-config --variable=libdir enlightenment)
gadget_folder = ${prefix}/enlightenment/gadgets/$(GADGET_NAME)
.PHONY: all install clean
all: $(GADGET_FILES) $(EXTRA_FILES)
install: all
@mkdir -p -v ${gadget_folder}
@cp --preserve=mode -v $(GADGET_FILES) $(EXTRA_FILES) $(gadget_folder)
uninstall: all
@rm -rfv ${gadget_folder}
clean:
@rm -fv *.edj *.pyc
EDJE_CC = edje_cc
EDJE_FLAGS = -v -id images/ -fd fonts/
%.edj: %.edc images/*
$(EDJE_CC) $(EDJE_FLAGS) $<
@chmod -v og+r $@
%.pyc: %.py
python3 -c "from py_compile import compile; compile('$<', '$@')"

@ -1,36 +0,0 @@
# Simple Makefile for Enlightenment (edgar) gadgets
# gadget specific config
GADGET_NAME = netspeed
EXTRA_FILES =
# nothing should be changed below this point
GADGET_FILES = __init__.pyc $(GADGET_NAME).edj
prefix = $(shell pkg-config --variable=libdir enlightenment)
gadget_folder = ${prefix}/enlightenment/gadgets/$(GADGET_NAME)
.PHONY: all install clean
all: $(GADGET_FILES) $(EXTRA_FILES)
install: all
@mkdir -p -v ${gadget_folder}
@cp --preserve=mode -v $(GADGET_FILES) $(EXTRA_FILES) $(gadget_folder)
uninstall: all
@rm -rfv ${gadget_folder}
clean:
@rm -fv *.edj *.pyc
EDJE_CC = edje_cc
EDJE_FLAGS = -v -id images/ -fd fonts/
%.edj: %.edc images/*
$(EDJE_CC) $(EDJE_FLAGS) $<
@chmod -v og+r $@
%.pyc: %.py
python3 -c "from py_compile import compile; compile('$<', '$@')"

@ -1,237 +1,23 @@
Installation Instructions
*************************
To build using meson
====================
meson build
cd build
ninja
ninja install
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
2006, 2007 Free Software Foundation, Inc.
This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.
Basic Installation
==================
Briefly, the shell commands `./configure; make; make install' should
configure, build, and install this package. The following
more-detailed instructions are generic; see the `README' file for
instructions specific to this package.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').
It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring. Caching is
disabled by default to prevent problems with accidental use of stale
cache files.
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.
The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'. You need `configure.ac' if
you want to change it or regenerate `configure' using a newer version
of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system.
Running `configure' might take a while. While running, it prints
some messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package.
4. Type `make install' to install the programs and any data files and
documentation.
5. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
6. Often, you can also type `make uninstall' to remove the installed
files again.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that the
`configure' script does not know about. Run `./configure --help' for
details on some of the pertinent environment variables.
You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment. Here
is an example:
./configure CC=c99 CFLAGS=-g LIBS=-lposix
*Note Defining Variables::, for more details.
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you can use GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
With a non-GNU `make', it is safer to compile the package for one
architecture at a time in the source code directory. After you have
installed the package for one architecture, use `make distclean' before
reconfiguring for another architecture.
Installation Names
==================
By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc. You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' cannot figure out automatically,
but needs to determine by the type of machine the package will run on.
Usually, assuming the package is built to be run on the _same_
architectures, `configure' can figure that out, but if it prints a
message saying it cannot guess the machine type, give it the
`--build=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:
CPU-COMPANY-SYSTEM
where SYSTEM can have one of these forms:
OS KERNEL-OS
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.
If you are _building_ compiler tools for cross-compiling, you should
use the option `--target=TYPE' to select the type of system they will
produce code for.
If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.
Sharing Defaults
Or without chdir
================
meson build
ninja -C build
ninja -C build install
If you want to set default values for `configure' scripts to share, you
can create a site shell script called `config.site' that gives default
values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Defining Variables
==================
Variables not defined in a site shell script can be set in the
environment passed to `configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script).
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
an Autoconf bug. Until the bug is fixed you can use this workaround:
CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
`configure' Invocation
======================
`configure' recognizes the following options to control how it operates.
`--help'
`-h'
Print a summary of the options to `configure', and exit.
`--version'
`-V'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`--cache-file=FILE'
Enable the cache: use and save the results of the tests in FILE,
traditionally `config.cache'. FILE defaults to `/dev/null' to
disable caching.
`--config-cache'
`-C'
Alias for `--cache-file=config.cache'.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
Uninstall
=========
ninja -C build uninstall
`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.
Clean build
===========
rm -rf build/

@ -1,25 +0,0 @@
ACLOCAL_AMFLAGS = -I m4
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess config.h.in \
config.sub configure depcomp install-sh ltmain.sh \
missing module.desktop config.rpath mkinstalldirs
SUBDIRS = src python
EDJE_FLAGS = -v \
-id $(top_srcdir)
filesdir = $(datadir)
files_DATA = module.desktop e-module-edgar.edj
EXTRA_DIST = module.desktop.in \
module_icon.png \
e-module-edgar.edc
%.edj: %.edc
$(EDJE_CC) $(EDJE_FLAGS) $< $@
clean-local:
rm -rf e-module-edgar.edj module.desktop *~
uninstall:
rm -rf $(DESTDIR)$(datadir)

@ -6,8 +6,8 @@ This module load python gadgets in Enlightenment.
Requirements
============
* Enlightenment >= 0.17
* Python >= 3.2 (also the -dev package if your disto need them)
* Enlightenment >= 0.24
* Python >= 3.5 (also the -dev package if your disto need them)
* Python-EFL >= 1.11 (built for python3)
* python3-dbus
@ -15,20 +15,11 @@ Requirements
Install
=======
To install the edgar module use the standard:
To install the edgar and all the incluede gadgets just use:
./autogen.sh
make
(sudo) make install
If py3 is not the default on your system you need to specify the version:
PYTHON_VERSION=3.x ./autogen.sh
Gadgets are in the GADGETS/ folder, to install them just use:
(sudo) make install
meson build
ninja -C build
ninja -C build install
The Audio gadget
@ -65,11 +56,10 @@ Usage tips:
How to write your own gadget
============================
I suggest to start from the ruler gadget, just copy it's folder and
I suggest to start from an existing gadget, just copy it's folder and
start hacking, a minimal gadget require:
base_folder/ (need to have the same name as the gadget)
Makefile (the provided makefile should work for you)
__init__.py (the gadget python script)
gadget.edc (the gadget edje file)
images/

@ -1,16 +0,0 @@
#!/bin/sh
rm -rf autom4te.cache
rm -f aclocal.m4 ltmain.sh
touch README
echo "Running aclocal..." ; aclocal -I m4 $ACLOCAL_FLAGS || exit 1
echo "Running autoheader..." ; autoheader || exit 1
echo "Running autoconf..." ; autoconf || exit 1
echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
if [ -z "$NOCONFIGURE" ]; then
./configure "$@"
fi

@ -1,84 +0,0 @@
dnl Process this file with autoconf to produce a configure script.
# get rid of that stupid cache mechanism
rm -f config.cache
AC_INIT(edgar, 0.2.0, dave@gurumeditation.it)
AC_PREREQ(2.52)
AC_CONFIG_SRCDIR(configure.ac)
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_ISC_POSIX
AM_INIT_AUTOMAKE(1.8)
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_C_CONST
AC_C___ATTRIBUTE__
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
AC_PROG_LIBTOOL
#AM_GNU_GETTEXT([external])
#AM_GNU_GETTEXT_VERSION(0.14)
release=$(pkg-config --variable=release enlightenment)
MODULE_ARCH="$host_os-$host_cpu-$release"
AC_SUBST(MODULE_ARCH)
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
# Find edje_cc
PKG_CHECK_MODULES(EDJE, [edje >= 0.5.0])
AC_ARG_WITH(edje-cc,
AC_HELP_STRING([--with-edje-cc=PATH], [specify a specific path to edje_cc]),
[
v=$withval;
EDJE_CC=$v
],[
EDJE_CC=$(pkg-config --variable=prefix edje)/bin/edje_cc
]
)
AC_SUBST(EDJE_CC)
AC_MSG_CHECKING([Which edje_cc to use])
AC_MSG_RESULT(${EDJE_CC})
# Check enlightenment version >=0.18
# (for e18 we manually define E_VERSION_MAJOR)
PKG_CHECK_MODULES(E,
[enlightenment >= 0.18 enlightenment < 0.19],
[AC_DEFINE([E_VERSION_MAJOR], [18], [Have exactly E18])],
[PKG_CHECK_MODULES(E, [enlightenment >= 0.19])]
)
# Explicit link to Eo
PKG_CHECK_MODULES(EO, [eo])
# Check for python3 and required modules
# PKG_CHECK_MODULES(PYTHON3, [python3 >= 3.2])
AX_PYTHON_DEVEL([>= '3.2'])
AC_SUBST([PYTHON])
AX_PYTHON3_MODULE(efl, "required")
AX_PYTHON3_MODULE(dbus, "required")
datadir=$(pkg-config --variable=modules enlightenment)/${PACKAGE}
AC_ARG_ENABLE(homedir-install,
AS_HELP_STRING([--enable-homedir-install], [Install module in homedir]),
[ datadir="${HOME}/.e/e/modules/${PACKAGE}" ]
)
AC_OUTPUT([
Makefile
src/Makefile
python/Makefile
module.desktop
], [
])

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Before

Width:  |  Height:  |  Size: 509 B

After

Width:  |  Height:  |  Size: 509 B

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

@ -0,0 +1,30 @@
gadget_name = 'audio'
install_dir = join_paths(gadgets_install_dir, gadget_name)
# build gadget_name.edj
custom_target(gadget_name + '.edj',
input : gadget_name + '.edc',
output : gadget_name + '.edj',
command : [edje_cc,
'-id', meson.current_source_dir() / 'images',
'-fd', meson.current_source_dir() / 'fonts',
'@INPUT@', '@OUTPUT@'],
install_dir: install_dir,
install : true
)
# TODO: bytecompile gadget __init__.py
# py3_bytecompile = [py3, '-c', 'from py_compile import compile; compile("@INPUT@", "@OUTPUT@")']
#custom_target('__init__.pyc',
# input : '__init__.py',
# output : '__init__.pyc',
# command : py3_bytecompile,
# install_dir: gadget_install_dir,
# install : true
# )
install_data('__init__.py', install_dir: install_dir)

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

@ -0,0 +1,21 @@
gadget_name = 'calculator'
install_dir = join_paths(gadgets_install_dir, gadget_name)
# build gadget_name.edj
custom_target(gadget_name + '.edj',
input : gadget_name + '.edc',
output : gadget_name + '.edj',
command : [edje_cc,
'-id', meson.current_source_dir() / 'images',
'-fd', meson.current_source_dir() / 'fonts',
'@INPUT@', '@OUTPUT@'],
install_dir: install_dir,
install : true
)
# TODO: bytecompile gadget __init__.py
install_data('__init__.py', install_dir: install_dir)

Before

Width:  |  Height:  |  Size: 664 B

After

Width:  |  Height:  |  Size: 664 B

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Before

Width:  |  Height:  |  Size: 284 B

After

Width:  |  Height:  |  Size: 284 B

Before

Width:  |  Height:  |  Size: 276 B

After

Width:  |  Height:  |  Size: 276 B

Before

Width:  |  Height:  |  Size: 284 B

After

Width:  |  Height:  |  Size: 284 B

@ -0,0 +1,21 @@
gadget_name = 'cpu'
install_dir = join_paths(gadgets_install_dir, gadget_name)
# build gadget_name.edj
custom_target(gadget_name + '.edj',
input : gadget_name + '.edc',
output : gadget_name + '.edj',
command : [edje_cc,
'-id', meson.current_source_dir() / 'images',
'-fd', meson.current_source_dir() / 'fonts',
'@INPUT@', '@OUTPUT@'],
install_dir: install_dir,
install : true
)
# TODO: bytecompile gadget __init__.py
install_data('__init__.py', install_dir: install_dir)

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

@ -0,0 +1,21 @@
gadget_name = 'dropbox'
install_dir = join_paths(gadgets_install_dir, gadget_name)
# build gadget_name.edj
custom_target(gadget_name + '.edj',
input : gadget_name + '.edc',
output : gadget_name + '.edj',
command : [edje_cc,
'-id', meson.current_source_dir() / 'images',
'-fd', meson.current_source_dir() / 'fonts',
'@INPUT@', '@OUTPUT@'],
install_dir: install_dir,
install : true
)
# TODO: bytecompile gadget __init__.py
install_data('__init__.py', install_dir: install_dir)