Line 322: |
Line 322: |
| == Examples == | | == Examples == |
| | | |
− | === Python activity without external dependencies === | + | === Python activity === |
| + | |
| + | Python based activity with standard Sugar Platform dependencies. |
| | | |
| [Activity] | | [Activity] |
Line 335: |
Line 337: |
| stability = testing | | stability = testing |
| exec = sugar-activity activity.CartoonBuilderActivity | | exec = sugar-activity activity.CartoonBuilderActivity |
| + | |
| + | === Python library === |
| + | |
| + | Package python based library that could be used as is or as an activity dependency. |
| + | |
| + | [Package] |
| + | slug = journal |
| + | summary = Hight level library to create your own Journal-like activity |
| + | license = GPLv3+ |
| + | homepage = http://wiki.sugarlabs.org/go/Activity_Team/Services/Journal |
| + | version = 1 |
| + | stability = testing |
| + | requires = toolkit/python |
| + | binding = PYTHONPATH |
| + | |
| + | === Vala library === |
| + | |
| + | Binary library with generating C files from Vala sources, creating library package, and devel, python binding sub-packages. |
| + | |
| + | [DEFAULT] |
| + | slug = env |
| + | summary = Access to various sugar environment settings. |
| + | license = LGPLv3+ |
| + | homepage = http://wiki.sugarlabs.org/go/Activity_Team/Services/Env |
| + | version = 0.9 |
| + | stability = testing |
| + | |
| + | [Package] |
| + | requires = glib; gconf; libgee >= 0.5 |
| + | binding = LD_LIBRARY_PATH lib |
| + | include = *.so.* |
| + | arch = build |
| + | |
| + | [Package/devel] |
| + | requires = glib/devel; gconf/devel; libgee/devel |
| + | binding = LD_LIBRARY_PATH lib |
| + | PKG_CONFIG_PATH lib/pkgconfig |
| + | VAPIDIR share/vala/vapi |
| + | exclude = python/* |
| + | arch = build |
| + | |
| + | [Package/python] |
| + | requires = python; %(slug)s |
| + | binding = PYTHONPATH python |
| + | include = python/* |
| + | arch = build |
| + | slots[python] = 2.5; 2.6; 2.7; 3.0 |
| + | |
| + | [Build] |
| + | requires = glib/devel; gconf/devel; libgee/devel |
| + | pkgconfig; cmake; make; gcc-c |
| + | build = cmake -DCMAKE_INSTALL_PREFIX=%(PREFIX)s |
| + | -DPYTHON_SITEDIR=%(PYTHON_SITEDIR)s |
| + | -DCOMPONENTS="env" |
| + | -DBINDING=python |
| + | -DCMAKE_C_FLAGS:STRING="%(CFLAGS)s" |
| + | %(SRCDIR)s && |
| + | make |
| + | install = make DESTDIR=%(DISTDIR)s install |
| + | |
| + | [Maintain] |
| + | requires = vala |
| + | exec = make dist |