From 4a1bfe27f09df36147849d802c113c1c5d41da81 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 11 Jul 2018 21:03:09 +0800 Subject: [PATCH] roojspacker roojspacker/data/Makefile.am roojspacker/po/LINGUAS roojspacker/po/POTFILES.in roojspacker/po/Makevars roojspacker/src/Makefile.am roojspacker/src/main.vala roojspacker/data/tags.Zy70CP roojspacker/po/tags.CtIwhQ roojspacker/src/tags.01q75S --- roojspacker/CONTRIBUTING.md | 0 roojspacker/Makefile.am | 36 +++ roojspacker/NEWS | 0 roojspacker/README.md | 0 roojspacker/autogen.sh | 38 +++ roojspacker/configure.ac | 129 ++++++++++ roojspacker/data/Makefile.am | 2 + roojspacker/git.mk | 333 +++++++++++++++++++++++++ roojspacker/org.gnome.Roojspacker.json | 53 ++++ roojspacker/po/LINGUAS | 1 + roojspacker/po/Makevars | 69 +++++ roojspacker/po/POTFILES.in | 0 roojspacker/src/Makefile.am | 9 + roojspacker/src/main.vala | 20 ++ 14 files changed, 690 insertions(+) create mode 100644 roojspacker/CONTRIBUTING.md create mode 100644 roojspacker/Makefile.am create mode 100644 roojspacker/NEWS create mode 100644 roojspacker/README.md create mode 100755 roojspacker/autogen.sh create mode 100644 roojspacker/configure.ac create mode 100644 roojspacker/data/Makefile.am create mode 100644 roojspacker/git.mk create mode 100644 roojspacker/org.gnome.Roojspacker.json create mode 100644 roojspacker/po/LINGUAS create mode 100644 roojspacker/po/Makevars create mode 100644 roojspacker/po/POTFILES.in create mode 100644 roojspacker/src/Makefile.am create mode 100644 roojspacker/src/main.vala diff --git a/roojspacker/CONTRIBUTING.md b/roojspacker/CONTRIBUTING.md new file mode 100644 index 0000000..e69de29 diff --git a/roojspacker/Makefile.am b/roojspacker/Makefile.am new file mode 100644 index 0000000..e2e002d --- /dev/null +++ b/roojspacker/Makefile.am @@ -0,0 +1,36 @@ +SUBDIRS = data src po + +EXTRA_DIST = AUTHORS + +AUTHORS: + $(AM_V_GEN)if test -d "$(srcdir)/.git"; \ + then \ + echo Creating $@ && \ + ( cd "$(top_srcdir)" && \ + echo '# Generated by Makefile. Do not edit.'; echo; \ + git log --no-merges --pretty=format:"%an" $(SUBDIRS) \ + | sort | uniq ) > $@.tmp \ + && mv -f $@.tmp $@ \ + || ( rm -f $@.tmp ; \ + echo Failed to generate $@ >&2 ); \ + else touch $@; fi + +# Generate the ChangeLog. +@GENERATE_CHANGELOG_RULES@ +dist-hook: dist-ChangeLog + + +GITIGNOREFILES = \ + **/*.swp \ + *.o \ + aclocal.m4 \ + build-aux \ + ChangeLog \ + config \ + config.h.in \ + gtk-doc.m4 \ + gtk-doc.make \ + INSTALL \ + $(NULL) + +-include $(top_srcdir)/git.mk diff --git a/roojspacker/NEWS b/roojspacker/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/roojspacker/README.md b/roojspacker/README.md new file mode 100644 index 0000000..e69de29 diff --git a/roojspacker/autogen.sh b/roojspacker/autogen.sh new file mode 100755 index 0000000..7fac80c --- /dev/null +++ b/roojspacker/autogen.sh @@ -0,0 +1,38 @@ +#!/bin/sh +# Run this to generate all the initial makefiles, etc. +test -n "$srcdir" || srcdir=$(dirname "$0") +test -n "$srcdir" || srcdir=. + +olddir=$(pwd) + +cd $srcdir + +(test -f configure.ac) || { + echo "*** ERROR: Directory '$srcdir' does not look like the top-level project directory ***" + exit 1 +} + +# shellcheck disable=SC2016 +PKG_NAME=$(autoconf --trace 'AC_INIT:$1' configure.ac) + +if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then + echo "*** WARNING: I am going to run 'configure' with no arguments." >&2 + echo "*** If you wish to pass any to it, please specify them on the" >&2 + echo "*** '$0' command line." >&2 + echo "" >&2 +fi + +mkdir -p m4 + +autoreconf --verbose --force --install || exit 1 + +cd "$olddir" +if [ "$NOCONFIGURE" = "" ]; then + $srcdir/configure "$@" || exit 1 + + if [ "$1" = "--help" ]; then exit 0 else + echo "Now type 'make' to compile $PKG_NAME" || exit 1 + fi +else + echo "Skipping configure process." +fi diff --git a/roojspacker/configure.ac b/roojspacker/configure.ac new file mode 100644 index 0000000..1aef120 --- /dev/null +++ b/roojspacker/configure.ac @@ -0,0 +1,129 @@ +AC_PREREQ([2.69]) + + +dnl *********************************************************************** +dnl Define Versioning Information +dnl *********************************************************************** +m4_define([major_version],[0]) +m4_define([minor_version],[1]) +m4_define([micro_version],[0]) +m4_define([package_version],[major_version.minor_version.micro_version]) +m4_define([bug_report_url],[https://bugzilla.gnome.org/enter_bug.cgi?product=roojspacker]) +m4_define([api_version],[major_version]) + +AX_IS_RELEASE([micro-version]) + +dnl *********************************************************************** +dnl Initialize autoconf +dnl *********************************************************************** +AC_INIT([roojspacker],[package_version],[bug_report_url]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_SRCDIR([NEWS]) +AC_CONFIG_MACRO_DIR([m4]) +AC_CONFIG_AUX_DIR([build-aux]) +AC_SUBST([ACLOCAL_AMFLAGS], "-I m4") +AC_CANONICAL_HOST + + +dnl *********************************************************************** +dnl Make version information available to autoconf files +dnl *********************************************************************** +AC_SUBST([MAJOR_VERSION],major_version) +AC_SUBST([MINOR_VERSION],minor_version) +AC_SUBST([MICRO_VERSION],micro_version) +AC_SUBST([API_VERSION],api_version) + + +dnl *********************************************************************** +dnl Initialize automake +dnl *********************************************************************** +AM_SILENT_RULES([yes]) +AM_INIT_AUTOMAKE([1.11 foreign subdir-objects tar-ustar no-dist-gzip dist-xz -Wno-portability]) +AM_MAINTAINER_MODE([enable]) +AX_GENERATE_CHANGELOG + + +dnl *********************************************************************** +dnl Add extra debugging with --enable-debug and --enable-compile-warnings +dnl *********************************************************************** +AX_CHECK_ENABLE_DEBUG([no],[] + [G_DISABLE_ASSERT G_DISABLE_CHECKS G_DISABLE_CAST_CHECKS]) + + +dnl *********************************************************************** +dnl Internationalization +dnl *********************************************************************** +GETTEXT_PACKAGE=AC_PACKAGE_TARNAME +AC_SUBST([GETTEXT_PACKAGE]) +AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [GETTEXT package name]) + +AM_GNU_GETTEXT_VERSION([0.19.6]) +AM_GNU_GETTEXT([external]) + + +dnl *********************************************************************** +dnl Check for required programs +dnl *********************************************************************** +AC_PROG_CC +AC_PROG_INSTALL +AC_PROG_SED +AC_PATH_PROG([GLIB_GENMARSHAL],[glib-genmarshal]) +AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums]) +AC_PATH_PROG([GLIB_COMPILE_RESOURCES],[glib-compile-resources]) +PKG_PROG_PKG_CONFIG([0.22]) +GLIB_GSETTINGS +GOBJECT_INTROSPECTION_CHECK([1.42.0]) + +AM_PROG_VALAC([0.32]) + + + +AX_COMPILER_FLAGS + + +dnl *********************************************************************** +dnl Ensure C11 is Supported +dnl *********************************************************************** +AX_CHECK_COMPILE_FLAG([-std=gnu11], + [CFLAGS="$CFLAGS -std=gnu11"], + [AC_MSG_ERROR([C compiler cannot compile GNU C11 code])]) + + + +dnl *********************************************************************** +dnl Check for required packages +dnl *********************************************************************** +PKG_CHECK_MODULES(ROOJSPACKER, [gio-2.0 >= 2.50 gtk+-3.0 >= 3.22]) + + +dnl *********************************************************************** +dnl Initialize Libtool +dnl *********************************************************************** +LT_PREREQ([2.2]) +LT_INIT + + +dnl *********************************************************************** +dnl Process .in Files +dnl *********************************************************************** +AC_CONFIG_FILES([ + Makefile + + src/Makefile + + + data/Makefile + + po/Makefile.in +],[], +[API_VERSION='$API_VERSION']) +AC_OUTPUT + +echo "" +echo " ${PACKAGE} - ${VERSION}" +echo "" +echo " Options" +echo "" +echo " Prefix ............................... : ${prefix}" +echo " Libdir ............................... : ${libdir}" +echo "" diff --git a/roojspacker/data/Makefile.am b/roojspacker/data/Makefile.am new file mode 100644 index 0000000..9b582ee --- /dev/null +++ b/roojspacker/data/Makefile.am @@ -0,0 +1,2 @@ + +-include $(top_srcdir)/git.mk diff --git a/roojspacker/git.mk b/roojspacker/git.mk new file mode 100644 index 0000000..9d4bf25 --- /dev/null +++ b/roojspacker/git.mk @@ -0,0 +1,333 @@ +# git.mk, a small Makefile to autogenerate .gitignore files +# for autotools-based projects. +# +# Copyright 2009, Red Hat, Inc. +# Copyright 2010,2011,2012,2013 Behdad Esfahbod +# Written by Behdad Esfahbod +# +# Copying and distribution of this file, with or without modification, +# is permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. +# +# The latest version of this file can be downloaded from: +GIT_MK_URL = https://raw.githubusercontent.com/behdad/git.mk/master/git.mk +# +# Bugs, etc, should be reported upstream at: +# https://github.com/behdad/git.mk +# +# To use in your project, import this file in your git repo's toplevel, +# then do "make -f git.mk". This modifies all Makefile.am files in +# your project to -include git.mk. Remember to add that line to new +# Makefile.am files you create in your project, or just rerun the +# "make -f git.mk". +# +# This enables automatic .gitignore generation. If you need to ignore +# more files, add them to the GITIGNOREFILES variable in your Makefile.am. +# But think twice before doing that. If a file has to be in .gitignore, +# chances are very high that it's a generated file and should be in one +# of MOSTLYCLEANFILES, CLEANFILES, DISTCLEANFILES, or MAINTAINERCLEANFILES. +# +# The only case that you need to manually add a file to GITIGNOREFILES is +# when remove files in one of mostlyclean-local, clean-local, distclean-local, +# or maintainer-clean-local make targets. +# +# Note that for files like editor backup, etc, there are better places to +# ignore them. See "man gitignore". +# +# If "make maintainer-clean" removes the files but they are not recognized +# by this script (that is, if "git status" shows untracked files still), send +# me the output of "git status" as well as your Makefile.am and Makefile for +# the directories involved and I'll diagnose. +# +# For a list of toplevel files that should be in MAINTAINERCLEANFILES, see +# Makefile.am.sample in the git.mk git repo. +# +# Don't EXTRA_DIST this file. It is supposed to only live in git clones, +# not tarballs. It serves no useful purpose in tarballs and clutters the +# build dir. +# +# This file knows how to handle autoconf, automake, libtool, gtk-doc, +# gnome-doc-utils, yelp.m4, mallard, intltool, gsettings, dejagnu, appdata, +# appstream. +# +# This makefile provides the following targets: +# +# - all: "make all" will build all gitignore files. +# - gitignore: makes all gitignore files in the current dir and subdirs. +# - .gitignore: make gitignore file for the current dir. +# - gitignore-recurse: makes all gitignore files in the subdirs. +# +# KNOWN ISSUES: +# +# - Recursive configure doesn't work as $(top_srcdir)/git.mk inside the +# submodule doesn't find us. If you have configure.{in,ac} files in +# subdirs, add a proxy git.mk file in those dirs that simply does: +# "include $(top_srcdir)/../git.mk". Add more ..'s to your taste. +# And add those files to git. See vte/gnome-pty-helper/git.mk for +# example. +# + + + +############################################################################### +# Variables user modules may want to add to toplevel MAINTAINERCLEANFILES: +############################################################################### + +# +# Most autotools-using modules should be fine including this variable in their +# toplevel MAINTAINERCLEANFILES: +GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL = \ + $(srcdir)/aclocal.m4 \ + $(srcdir)/autoscan.log \ + $(srcdir)/configure.scan \ + `AUX_DIR=$(srcdir)/$$(cd $(top_srcdir); $(AUTOCONF) --trace 'AC_CONFIG_AUX_DIR:$$1' ./configure.ac); \ + test "x$$AUX_DIR" = "x$(srcdir)/" && AUX_DIR=$(srcdir); \ + for x in \ + ar-lib \ + compile \ + config.guess \ + config.sub \ + depcomp \ + install-sh \ + ltmain.sh \ + missing \ + mkinstalldirs \ + test-driver \ + ylwrap \ + ; do echo "$$AUX_DIR/$$x"; done` \ + `cd $(top_srcdir); $(AUTOCONF) --trace 'AC_CONFIG_HEADERS:$$1' ./configure.ac | \ + head -n 1 | while read f; do echo "$(srcdir)/$$f.in"; done` +# +# All modules should also be fine including the following variable, which +# removes automake-generated Makefile.in files: +GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN = \ + `cd $(top_srcdir); $(AUTOCONF) --trace 'AC_CONFIG_FILES:$$1' ./configure.ac | \ + while read f; do \ + case $$f in Makefile|*/Makefile) \ + test -f "$(srcdir)/$$f.am" && echo "$(srcdir)/$$f.in";; esac; \ + done` +# +# Modules that use libtool and use AC_CONFIG_MACRO_DIR() may also include this, +# though it's harmless to include regardless. +GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL = \ + `MACRO_DIR=$(srcdir)/$$(cd $(top_srcdir); $(AUTOCONF) --trace 'AC_CONFIG_MACRO_DIR:$$1' ./configure.ac); \ + if test "x$$MACRO_DIR" != "x$(srcdir)/"; then \ + for x in \ + libtool.m4 \ + ltoptions.m4 \ + ltsugar.m4 \ + ltversion.m4 \ + lt~obsolete.m4 \ + ; do echo "$$MACRO_DIR/$$x"; done; \ + fi` + + + +############################################################################### +# Default rule is to install ourselves in all Makefile.am files: +############################################################################### + +git-all: git-mk-install + +git-mk-install: + @echo "Installing git makefile" + @any_failed=; \ + find "`test -z "$(top_srcdir)" && echo . || echo "$(top_srcdir)"`" -name Makefile.am | while read x; do \ + if grep 'include .*/git.mk' $$x >/dev/null; then \ + echo "$$x already includes git.mk"; \ + else \ + failed=; \ + echo "Updating $$x"; \ + { cat $$x; \ + echo ''; \ + echo '-include $$(top_srcdir)/git.mk'; \ + } > $$x.tmp || failed=1; \ + if test x$$failed = x; then \ + mv $$x.tmp $$x || failed=1; \ + fi; \ + if test x$$failed = x; then : else \ + echo "Failed updating $$x"; >&2 \ + any_failed=1; \ + fi; \ + fi; done; test -z "$$any_failed" + +git-mk-update: + wget $(GIT_MK_URL) -O $(top_srcdir)/git.mk + +.PHONY: git-all git-mk-install git-mk-update + + + +############################################################################### +# Actual .gitignore generation: +############################################################################### + +$(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk + @echo "git.mk: Generating $@" + @{ \ + if test "x$(DOC_MODULE)" = x -o "x$(DOC_MAIN_SGML_FILE)" = x; then :; else \ + for x in \ + $(DOC_MODULE)-decl-list.txt \ + $(DOC_MODULE)-decl.txt \ + tmpl/$(DOC_MODULE)-unused.sgml \ + "tmpl/*.bak" \ + xml html \ + ; do echo "/$$x"; done; \ + FLAVOR=$$(cd $(top_srcdir); $(AUTOCONF) --trace 'GTK_DOC_CHECK:$$2' ./configure.ac); \ + case $$FLAVOR in *no-tmpl*) echo /tmpl;; esac; \ + fi; \ + if test "x$(DOC_MODULE)$(DOC_ID)" = x -o "x$(DOC_LINGUAS)" = x; then :; else \ + for lc in $(DOC_LINGUAS); do \ + for x in \ + $(if $(DOC_MODULE),$(DOC_MODULE).xml) \ + $(DOC_PAGES) \ + $(DOC_INCLUDES) \ + ; do echo "/$$lc/$$x"; done; \ + done; \ + for x in \ + $(_DOC_OMF_ALL) \ + $(_DOC_DSK_ALL) \ + $(_DOC_HTML_ALL) \ + $(_DOC_MOFILES) \ + $(DOC_H_FILE) \ + "*/.xml2po.mo" \ + "*/*.omf.out" \ + ; do echo /$$x; done; \ + fi; \ + if test "x$(HELP_ID)" = x -o "x$(HELP_LINGUAS)" = x; then :; else \ + for lc in $(HELP_LINGUAS); do \ + for x in \ + $(HELP_FILES) \ + "$$lc.stamp" \ + "$$lc.mo" \ + ; do echo "/$$lc/$$x"; done; \ + done; \ + fi; \ + if test "x$(gsettings_SCHEMAS)" = x; then :; else \ + for x in \ + $(gsettings_SCHEMAS:.xml=.valid) \ + $(gsettings__enum_file) \ + ; do echo "/$$x"; done; \ + fi; \ + if test "x$(appdata_XML)" = x; then :; else \ + for x in \ + $(appdata_XML:.xml=.valid) \ + ; do echo "/$$x"; done; \ + fi; \ + if test "x$(appstream_XML)" = x; then :; else \ + for x in \ + $(appstream_XML:.xml=.valid) \ + ; do echo "/$$x"; done; \ + fi; \ + if test -f $(srcdir)/po/Makefile.in.in; then \ + for x in \ + po/Makefile.in.in \ + po/Makefile.in.in~ \ + po/Makefile.in \ + po/Makefile \ + po/Makevars.template \ + po/POTFILES \ + po/Rules-quot \ + po/stamp-it \ + po/.intltool-merge-cache \ + "po/*.gmo" \ + "po/*.header" \ + "po/*.mo" \ + "po/*.sed" \ + "po/*.sin" \ + po/$(GETTEXT_PACKAGE).pot \ + intltool-extract.in \ + intltool-merge.in \ + intltool-update.in \ + ; do echo "/$$x"; done; \ + fi; \ + if test -f $(srcdir)/configure; then \ + for x in \ + autom4te.cache \ + configure \ + config.h \ + stamp-h1 \ + libtool \ + config.lt \ + ; do echo "/$$x"; done; \ + fi; \ + if test "x$(DEJATOOL)" = x; then :; else \ + for x in \ + $(DEJATOOL) \ + ; do echo "/$$x.sum"; echo "/$$x.log"; done; \ + echo /site.exp; \ + fi; \ + if test "x$(am__dirstamp)" = x; then :; else \ + echo "$(am__dirstamp)"; \ + fi; \ + if test "x$(LTCOMPILE)" = x -a "x$(LTCXXCOMPILE)" = x -a "x$(GTKDOC_RUN)" = x; then :; else \ + for x in \ + "*.lo" \ + ".libs" "_libs" \ + ; do echo "$$x"; done; \ + fi; \ + for x in \ + .gitignore \ + $(GITIGNOREFILES) \ + $(CLEANFILES) \ + $(PROGRAMS) $(check_PROGRAMS) $(EXTRA_PROGRAMS) \ + $(LIBRARIES) $(check_LIBRARIES) $(EXTRA_LIBRARIES) \ + $(LTLIBRARIES) $(check_LTLIBRARIES) $(EXTRA_LTLIBRARIES) \ + so_locations \ + $(MOSTLYCLEANFILES) \ + $(TEST_LOGS) \ + $(TEST_LOGS:.log=.trs) \ + $(TEST_SUITE_LOG) \ + $(TESTS:=.test) \ + "*.gcda" \ + "*.gcno" \ + $(DISTCLEANFILES) \ + $(am__CONFIG_DISTCLEAN_FILES) \ + $(CONFIG_CLEAN_FILES) \ + TAGS ID GTAGS GRTAGS GSYMS GPATH tags \ + "*.tab.c" \ + $(MAINTAINERCLEANFILES) \ + $(BUILT_SOURCES) \ + $(patsubst %.vala,%.c,$(filter %.vala,$(SOURCES))) \ + $(filter %_vala.stamp,$(DIST_COMMON)) \ + $(filter %.vapi,$(DIST_COMMON)) \ + $(filter $(addprefix %,$(notdir $(patsubst %.vapi,%.h,$(filter %.vapi,$(DIST_COMMON))))),$(DIST_COMMON)) \ + Makefile \ + Makefile.in \ + "*.orig" \ + "*.rej" \ + "*.bak" \ + "*~" \ + ".*.sw[nop]" \ + ".dirstamp" \ + ; do echo "/$$x"; done; \ + for x in \ + "*.$(OBJEXT)" \ + $(DEPDIR) \ + ; do echo "$$x"; done; \ + } | \ + sed "s@^/`echo "$(srcdir)" | sed 's/\(.\)/[\1]/g'`/@/@" | \ + sed 's@/[.]/@/@g' | \ + LC_ALL=C sort | uniq > $@.tmp && \ + mv $@.tmp $@; + +all: $(srcdir)/.gitignore gitignore-recurse-maybe +gitignore: $(srcdir)/.gitignore gitignore-recurse + +gitignore-recurse-maybe: + @for subdir in $(DIST_SUBDIRS); do \ + case " $(SUBDIRS) " in \ + *" $$subdir "*) :;; \ + *) test "$$subdir" = . -o -e "$$subdir/.git" || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) gitignore || echo "Skipping $$subdir");; \ + esac; \ + done +gitignore-recurse: + @for subdir in $(DIST_SUBDIRS); do \ + test "$$subdir" = . -o -e "$$subdir/.git" || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) gitignore || echo "Skipping $$subdir"); \ + done + +maintainer-clean: gitignore-clean +gitignore-clean: + -rm -f $(srcdir)/.gitignore + +.PHONY: gitignore-clean gitignore gitignore-recurse gitignore-recurse-maybe diff --git a/roojspacker/org.gnome.Roojspacker.json b/roojspacker/org.gnome.Roojspacker.json new file mode 100644 index 0000000..bafc9f2 --- /dev/null +++ b/roojspacker/org.gnome.Roojspacker.json @@ -0,0 +1,53 @@ +{ + "app-id": "org.gnome.Roojspacker", + "runtime": "org.gnome.Platform", + "runtime-version": "3.26", + "sdk": "org.gnome.Sdk", + "command": "roojspacker", + "finish-args": [ + "--share=network", + "--share=ipc", + "--socket=x11", + "--socket=wayland", + "--filesystem=xdg-run/dconf", + "--filesystem=~/.config/dconf:ro", + "--talk-name=ca.desrt.dconf", + "--env=DCONF_USER_CONFIG_DIR=.config/dconf" + ], + "build-options" : { + "cflags": "-O2 -g", + "cxxflags": "-O2 -g", + "env": { + "V": "1" + } + }, + "cleanup": ["/include", "/lib/pkgconfig", + "/share/pkgconfig", "/share/aclocal", + "/man", "/share/man", "/share/gtk-doc", + "/share/vala", + "*.la", "*.a"], + "cleanup": [ + "/include", + "/lib/pkgconfig", + "/man", + "/share/aclocal", + "/share/doc", + "/share/gtk-doc", + "/share/man", + "/share/pkgconfig", + "/share/vala", + "*.la", + "*.a" + ], + "modules": [ + { + "name": "roojspacker", + "sources": [ + { + "type": "git", + "url": "file:///home/alan/gitlive/roojspacker/roojspacker" + } + ] + } + ] +} diff --git a/roojspacker/po/LINGUAS b/roojspacker/po/LINGUAS new file mode 100644 index 0000000..e7604c1 --- /dev/null +++ b/roojspacker/po/LINGUAS @@ -0,0 +1 @@ +# Please keep this list sorted alphabetically. diff --git a/roojspacker/po/Makevars b/roojspacker/po/Makevars new file mode 100644 index 0000000..1326ab7 --- /dev/null +++ b/roojspacker/po/Makevars @@ -0,0 +1,69 @@ +# Makefile variables for PO directory in any package using GNU gettext. + +# Usually the message domain is the same as the package name. +DOMAIN = $(GETTEXT_DOMAIN) + +# These two variables depend on the location of this directory. +subdir = po +top_builddir = .. + +# These options get passed to xgettext. +XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ \ + --keyword=C_:1c,2 --keyword=NC_:1c,2 \ + --keyword=g_dngettext:2,3 \ + --flag=g_dngettext:2:pass-c-format \ + --flag=g_strdup_printf:1:c-format \ + --flag=g_string_printf:2:c-format \ + --flag=g_string_append_printf:2:c-format \ + --flag=g_error_new:3:c-format \ + --flag=g_set_error:4:c-format \ + --flag=g_markup_printf_escaped:1:c-format \ + --flag=g_log:3:c-format \ + --flag=g_print:1:c-format \ + --flag=g_printerr:1:c-format \ + --flag=g_printf:1:c-format \ + --flag=g_fprintf:2:c-format \ + --flag=g_sprintf:2:c-format \ + --flag=g_snprintf:3:c-format + + +# This is the copyright holder that gets inserted into the header of the +# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding +# package. (Note that the msgstr strings, extracted from the package's +# sources, belong to the copyright holder of the package.) Translators are +# expected to transfer the copyright for their translations to this person +# or entity, or to disclaim their copyright. The empty string stands for +# the public domain; in this case the translators are expected to disclaim +# their copyright. +COPYRIGHT_HOLDER = Translation copyright holder + +# This is the email address or URL to which the translators shall report +# bugs in the untranslated strings: +# - Strings which are not entire sentences, see the maintainer guidelines +# in the GNU gettext documentation, section 'Preparing Strings'. +# - Strings which use unclear terms or require additional context to be +# understood. +# - Strings which make invalid assumptions about notation of date, time or +# money. +# - Pluralisation problems. +# - Incorrect English spelling. +# - Incorrect formatting. +# It can be your email address, or a mailing list address where translators +# can write to without being subscribed, or the URL of a web page through +# which the translators can contact you. +MSGID_BUGS_ADDRESS = + +# This is the list of locale categories, beyond LC_MESSAGES, for which the +# message catalogs shall be used. It is usually empty. +EXTRA_LOCALE_CATEGORIES = + +# Ignore the timestamp of the .pot file, as git clones do not have +# deterministic timestamps, and .po files are updated by translators +# (only) in GNOME projects. +PO_DEPENDS_ON_POT = no + +# This tells whether or not to forcibly update $(DOMAIN).pot and +# regenerate PO files on "make dist". Possible values are "yes" and +# "no". Set this to no if the POT file and PO files are maintained +# externally. +DIST_DEPENDS_ON_UPDATE_PO = no diff --git a/roojspacker/po/POTFILES.in b/roojspacker/po/POTFILES.in new file mode 100644 index 0000000..e69de29 diff --git a/roojspacker/src/Makefile.am b/roojspacker/src/Makefile.am new file mode 100644 index 0000000..75d078c --- /dev/null +++ b/roojspacker/src/Makefile.am @@ -0,0 +1,9 @@ +bin_PROGRAMS = roojspacker + +roojspacker_SOURCES = main.vala +roojspacker_CPPFLAGS = $(ROOJSPACKER_CFLAGS) +roojspacker_VALAFLAGS = --pkg gtk+-3.0 + +roojspacker_LDADD = $(ROOJSPACKER_LIBS) + +-include $(top_srcdir)/git.mk diff --git a/roojspacker/src/main.vala b/roojspacker/src/main.vala new file mode 100644 index 0000000..d6ff632 --- /dev/null +++ b/roojspacker/src/main.vala @@ -0,0 +1,20 @@ + +using Gtk; + +int main (string[] args) { + Gtk.init (ref args); + + var window = new Window (); + window.title = "roojspacker"; + window.set_default_size (200, 200); + window.destroy.connect (Gtk.main_quit); + + /* You can add GTK+ widgets to your window here. + * See https://developer.gnome.org/ for help. + */ + + window.show_all (); + + Gtk.main (); + return 0; +} -- 2.39.2