From 5e74a57142f640de0d9a2f9e5b7d3b0f46b022a5 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 16 Jan 2009 23:03:35 +0000 Subject: [PATCH] Plugins restructure: move gramplets to plugins/gramplet/ svn: r11636 --- po/POTFILES.in | 13 ++++++---- src/plugins/Makefile.am | 5 +--- .../{ => gramplet}/AttributesGramplet.py | 0 .../{ => gramplet}/DefaultGramplets.py | 0 src/plugins/{ => gramplet}/DescendGramplet.py | 0 .../{ => gramplet}/GivenNameGramplet.py | 0 src/plugins/gramplet/Makefile.am | 26 +++++++++++++++++++ src/plugins/{ => gramplet}/NoteGramplet.py | 0 src/plugins/{ => gramplet}/WhatsNext.py | 0 9 files changed, 35 insertions(+), 9 deletions(-) rename src/plugins/{ => gramplet}/AttributesGramplet.py (100%) rename src/plugins/{ => gramplet}/DefaultGramplets.py (100%) rename src/plugins/{ => gramplet}/DescendGramplet.py (100%) rename src/plugins/{ => gramplet}/GivenNameGramplet.py (100%) create mode 100644 src/plugins/gramplet/Makefile.am rename src/plugins/{ => gramplet}/NoteGramplet.py (100%) rename src/plugins/{ => gramplet}/WhatsNext.py (100%) diff --git a/po/POTFILES.in b/po/POTFILES.in index f81abc1bd..e032fa354 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -237,13 +237,10 @@ src/Selectors/__init__.py # plugins directory src/plugins/AgeStats.py src/plugins/AncestorReport.py -src/plugins/AttributesGramplet.py src/plugins/BookReport.py src/plugins/Calendar.py src/plugins/CustomBookText.py -src/plugins/DefaultGramplets.py src/plugins/DescendReport.py -src/plugins/DescendGramplet.py src/plugins/DetAncestralReport.py src/plugins/DetDescendantReport.py src/plugins/EndOfLineReport.py @@ -257,7 +254,6 @@ src/plugins/ExportVCalendar.py src/plugins/ExportVCard.py src/plugins/ExportXml.py src/plugins/FamilyGroup.py -src/plugins/GivenNameGramplet.py src/plugins/GVFamilyLines.py src/plugins/GVHourGlass.py src/plugins/GVRelGraph.py @@ -279,7 +275,6 @@ src/plugins/Records.py src/plugins/SimpleBookTitle.py src/plugins/Summary.py src/plugins/WebCal.py -src/plugins/WhatsNext.py # plugins/drawreport directory src/plugins/drawreport/AncestorTree.py @@ -288,6 +283,14 @@ src/plugins/drawreport/FanChart.py src/plugins/drawreport/StatisticsChart.py src/plugins/drawreport/TimeLine.py +# plugins/gramplet directory +src/plugins/gramplet/AttributesGramplet.py +src/plugins/gramplet/DefaultGramplets.py +src/plugins/gramplet/DescendGramplet.py +src/plugins/gramplet/GivenNameGramplet.py +src/plugins/gramplet/NoteGramplet.py +src/plugins/gramplet/WhatsNext.py + # plugins/quickview directory src/plugins/quickview/AgeOnDate.py src/plugins/quickview/all_events.py diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index 16b051262..0d63cf4e0 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -5,6 +5,7 @@ SUBDIRS = \ drawreport \ + gramplet \ quickview \ rel \ tool @@ -15,14 +16,11 @@ pkgdata_PYTHON = \ AgeStats.py\ AncestorTree.py\ AncestorReport.py\ - AttributesGramplet.py\ BookReport.py\ Calendar.py \ CustomBookText.py\ - DefaultGramplets.py\ DescendTree.py\ DescendReport.py\ - DescendGramplet.py\ DetAncestralReport.py\ DetDescendantReport.py\ EndOfLineReport.py\ @@ -37,7 +35,6 @@ pkgdata_PYTHON = \ ExportXml.py\ FamilyGroup.py\ FanChart.py\ - GivenNameGramplet.py\ GVFamilyLines.py \ GVHourGlass.py\ GVRelGraph.py\ diff --git a/src/plugins/AttributesGramplet.py b/src/plugins/gramplet/AttributesGramplet.py similarity index 100% rename from src/plugins/AttributesGramplet.py rename to src/plugins/gramplet/AttributesGramplet.py diff --git a/src/plugins/DefaultGramplets.py b/src/plugins/gramplet/DefaultGramplets.py similarity index 100% rename from src/plugins/DefaultGramplets.py rename to src/plugins/gramplet/DefaultGramplets.py diff --git a/src/plugins/DescendGramplet.py b/src/plugins/gramplet/DescendGramplet.py similarity index 100% rename from src/plugins/DescendGramplet.py rename to src/plugins/gramplet/DescendGramplet.py diff --git a/src/plugins/GivenNameGramplet.py b/src/plugins/gramplet/GivenNameGramplet.py similarity index 100% rename from src/plugins/GivenNameGramplet.py rename to src/plugins/gramplet/GivenNameGramplet.py diff --git a/src/plugins/gramplet/Makefile.am b/src/plugins/gramplet/Makefile.am new file mode 100644 index 000000000..3a202edf3 --- /dev/null +++ b/src/plugins/gramplet/Makefile.am @@ -0,0 +1,26 @@ +# This is the src/plugins/drawreport level Makefile for Gramps +# We could use GNU make's ':=' syntax for nice wildcard use, +# but that is not necessarily portable. +# If not using GNU make, then list all .py files individually + +pkgdatadir = $(datadir)/@PACKAGE@/plugins/gramplet + +pkgdata_PYTHON = \ + AttributesGramplet.py \ + DefaultGramplets.py \ + DescendGramplet.py \ + GivenNameGramplet.py \ + NoteGramplet.py \ + WhatsNext.py + +pkgpyexecdir = @pkgpyexecdir@/plugins/gramplet +pkgpythondir = @pkgpythondir@/plugins/gramplet + +# Clean up all the byte-compiled files +MOSTLYCLEANFILES = *pyc *pyo + +GRAMPS_PY_MODPATH = "../../" + +pycheck: + (export PYTHONPATH=$(GRAMPS_PY_MODPATH); \ + pychecker $(pkgdata_PYTHON)); diff --git a/src/plugins/NoteGramplet.py b/src/plugins/gramplet/NoteGramplet.py similarity index 100% rename from src/plugins/NoteGramplet.py rename to src/plugins/gramplet/NoteGramplet.py diff --git a/src/plugins/WhatsNext.py b/src/plugins/gramplet/WhatsNext.py similarity index 100% rename from src/plugins/WhatsNext.py rename to src/plugins/gramplet/WhatsNext.py