Skip to content

Commit 10905c5

Browse files
committed
misc fixes
1 parent 06b21c8 commit 10905c5

10 files changed

Lines changed: 30 additions & 24 deletions

debian/control

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
Source: libqgcodeeditor
22
Priority: optional
3-
Uploaders: Jakob Flierl <jakob.flierl@gmail.com>
43
Maintainer: Jakob Flierl <jakob.flierl@gmail.com>
54
Build-Depends: debhelper-compat (= 13),
65
qtbase5-dev,
@@ -34,8 +33,7 @@ Description: G-Code text editor library based on Qt5 - development files
3433

3534
Package: libqgcodeeditor-qt6
3635
Architecture: any
37-
Depends: ${misc:Depends},
38-
${shlibs:Depends}
36+
Depends: ${misc:Depends}
3937
Pre-Depends: ${misc:Pre-Depends}
4038
Suggests: libqgcodeeditor-doc
4139
Multi-Arch: same
@@ -81,7 +79,7 @@ Description: Qt5 Designer plugin for QGCodeEditor (debug)
8179
Package: libqgcodeeditor-qt6-designer
8280
Section: misc
8381
Architecture: any
84-
Depends: ${misc:Depends}, ${shlibs:Depends}
82+
Depends: ${misc:Depends}
8583
Enhances: qt-designer
8684
Multi-Arch: same
8785
Description: Qt6 Designer plugin for QGCodeEditor
@@ -144,6 +142,7 @@ Architecture: all
144142
Multi-Arch: foreign
145143
Depends: libjs-jquery,
146144
${misc:Depends}
145+
X-Doc-Main-Package: libqgcodeeditor-qt5
147146
Description: G-Code text editor library based on Qt5 - development files
148147
libqgcodeeditor (also known as QGGCodeEditor) is a free C++ library based on Qt
149148
that enables the quick creation of G-Code editing apps. It features
@@ -156,9 +155,8 @@ Package: libqgcodeeditor-qt5-dbg
156155
Priority: extra
157156
Section: debug
158157
Architecture: any
159-
Depends: libqgcodeeditor (= ${binary:Version}),
160-
${misc:Depends},
161-
${shlibs:Depends}
158+
Depends: libqgcodeeditor-qt5 (= ${binary:Version}),
159+
${misc:Depends}
162160
Description: G-Code text editor library based on Qt5 - development files
163161
libqgcodeeditor (also known as QGGCodeEditor) is a free C++ library based on Qt
164162
that enables the quick creation of G-Code editing apps. It features
@@ -174,9 +172,8 @@ Package: libqgcodeeditor-qt6-dbg
174172
Priority: extra
175173
Section: debug
176174
Architecture: any
177-
Depends: libqgcodeeditor (= ${binary:Version}),
178-
${misc:Depends},
179-
${shlibs:Depends}
175+
Depends: libqgcodeeditor-qt6 (= ${binary:Version}),
176+
${misc:Depends}
180177
Description: G-Code text editor library based on Qt6 - development files
181178
libqgcodeeditor (also known as QGGCodeEditor) is a free C++ library based on Qt
182179
that enables the quick creation of G-Code editing apps. It features

debian/libqgcodeeditor-qt5-15.install

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
usr/include/${DEB_HOST_MULTIARCH}/qt5/
1+
usr/include/${DEB_HOST_MULTIARCH}/qt5/QGCodeEditor/QGCodeEditor.h
2+
usr/include/${DEB_HOST_MULTIARCH}/qt5/QGCodeEditor/QGCodeSyntaxHighlighter.h
23
usr/lib/${DEB_HOST_MULTIARCH}/qt5/mkspecs/features/qgcodeeditor.prf
3-
usr/lib/${DEB_HOST_MULTIARCH}/libqgcodeeditor_qt5.so

debian/libqgcodeeditor-qt5.install

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
usr/lib/${DEB_HOST_MULTIARCH}/libqgcodeeditor_qt5.so
2+
usr/lib/${DEB_HOST_MULTIARCH}/libqgcodeeditor_qt5.so.0
3+
usr/lib/${DEB_HOST_MULTIARCH}/libqgcodeeditor_qt5.so.0.0
4+
usr/lib/${DEB_HOST_MULTIARCH}/libqgcodeeditor_qt5.so.0.0.1

debian/not-installed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/lib/x86_64-linux-gnu/libqgcodeeditor_qt5.prl

debian/rules

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ configure-stamp:
1919
dh_testdir
2020
mkdir -p QGcodeQt5
2121
cp -r src/* QGcodeQt5
22-
cd QGcodeQt5 && /usr/bin/qmake -qt=5 DESTDIR=../QGcodeQt5 $(QMAKE_FLAGS)
22+
cd QGcodeQt5 && /usr/bin/qmake -qt=5 PREFIX=/usr LIB_DIR=/usr/lib/$${DEB_HOST_MULTIARCH} INCLUDE_DIR=/usr/include/$${DEB_HOST_MULTIARCH}/qt5 DESTDIR=../QGcodeQt5 $(QMAKE_FLAGS)
2323
cp -r designer designer-Qt5
2424
cd designer-Qt5 && /usr/bin/qmake -qt=5 INCLUDEPATH+=../src QMAKE_LIBDIR+=../QGcodeQt5 DESTDIR=../designer-Qt5 $(QMAKE_FLAGS)
2525
ifeq ($(qt6), "yes")
@@ -57,7 +57,9 @@ ifeq ($(qt6), "yes")
5757
endif
5858

5959
execute_after_dh_installdocs-indep:
60-
dh_doxygen
60+
61+
override_dh_makeshlibs:
62+
dh_makeshlibs --add-udeb shlibs:Depends -V
6163

6264
override_dh_strip:
6365
dh_strip --remaining-packages

doc/qgcodeeditor.dxy

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ WARNINGS = YES
842842
# will automatically be disabled.
843843
# The default value is: YES.
844844

845-
WARN_IF_UNDOCUMENTED = YES
845+
WARN_IF_UNDOCUMENTED = NO
846846

847847
# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
848848
# potential errors in the documentation, such as documenting some parameters in
@@ -933,8 +933,7 @@ WARN_LOGFILE =
933933
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
934934
# Note: If this tag is empty the current directory is searched.
935935

936-
INPUT = README.doc \
937-
../QGCodeEditor
936+
INPUT = ../src
938937

939938
# This tag can be used to specify the character encoding of the source files
940939
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
@@ -974,13 +973,13 @@ INPUT_FILE_ENCODING =
974973
# provided as doxygen C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
975974
# *.f18, *.f, *.for, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
976975

977-
FILE_PATTERNS = qsci*.h
976+
FILE_PATTERNS = *.h *.cpp *.hpp *.c *.cc
978977

979978
# The RECURSIVE tag can be used to specify whether or not subdirectories should
980979
# be searched for input files as well.
981980
# The default value is: NO.
982981

983-
RECURSIVE = NO
982+
RECURSIVE = YES
984983

985984
# The EXCLUDE tag can be used to specify files and/or directories that should be
986985
# excluded from the INPUT source files. This way you can easily exclude a
@@ -1967,7 +1966,7 @@ COMPACT_LATEX = NO
19671966
# The default value is: a4.
19681967
# This tag requires that the tag GENERATE_LATEX is set to YES.
19691968

1970-
PAPER_TYPE = a4wide
1969+
PAPER_TYPE = a4
19711970

19721971
# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names
19731972
# that should be included in the LaTeX output. The package can be specified just

src/QGCodeEditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ QStringList list;
143143
}
144144
else if(str2.contains(';') )
145145
{
146-
list = str2.split(";", QString::SkipEmptyParts); // skip because could have 2 or more ;
146+
list = str2.split(";", Qt::SkipEmptyParts);
147147
str = list[0];
148148
str2 = " ;" + list[1];
149149
}

src/QGCodeEditor.pro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Run "qmake; make; make install" to compile and install the library on Unix systems.
22

33
TEMPLATE = lib
4-
TARGET = QGCodeEditor
4+
greaterThan(QT_MAJOR_VERSION, 5) {
5+
TARGET = qgcodeeditor_qt6
6+
} else {
7+
TARGET = qgcodeeditor_qt5
8+
}
59
VERSION = 0.0.1
610

711
QT *= gui widgets

src/libQGCodeEditor.prl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
QMAKE_PRL_BUILD_DIR = /home/koppi/src/github/QGCoder/libqgcodeeditor/src
1+
QMAKE_PRL_BUILD_DIR = /home/koppi/libqgcodeeditor/src
22
QMAKE_PRO_INPUT = QGCodeEditor.pro
33
QMAKE_PRL_TARGET = libQGCodeEditor.so.0.0.1
44
QMAKE_PRL_CONFIG = lex yacc exceptions depend_includepath testcase_targets import_plugins import_qpa_plugin file_copies qmake_use qt warn_on release link_prl incremental shared shared release linux unix posix gcc thread create_prl rtti have_target dll uic opengl moc resources

0 commit comments

Comments
 (0)