File: rules

package info (click to toggle)
gnustep-sqlclient 1.9.0-6
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 984 kB
  • sloc: objc: 11,703; perl: 965; makefile: 34; sh: 9
file content (46 lines) | stat: -rwxr-xr-x 1,345 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/make -f
#DH_VERBOSE = 1

include /usr/share/GNUstep/debian/config.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export LINKSQLCLIENT := 1

sover := 1.9

%:
	dh $@

override_dh_auto_build:
	cp debian/libsqlclient-dev.install.in debian/libsqlclient-dev.install
ifdef docs
	cp debian/libsqlclient-dev.links.in debian/libsqlclient-dev.links
else
# Remove /usr/share if "nodoc" is in DEB_BUILD_OPTIONS.
	sed -i '$$d' debian/libsqlclient-dev.install
endif
	dh_auto_build -- $(optim) $(verbose) $(docs) \
	  $(shell dpkg-buildflags --export=cmdline)

override_dh_auto_install:
	dh_auto_install -- $(docs)

override_dh_auto_clean:
	dh_auto_clean -- $(docs)
	$(RM) -r Bundles
	dh_clean test test.conf debian/libsqlclient-dev.{install,links}

override_dh_auto_test:
# Test the SQLite and the Postgres bundles.
	echo "GNUSTEP_LOCAL_LIBRARY=$(CURDIR)" > test.conf
	chmod 0644 test.conf
	mkdir -p Bundles/SQLClient$(sover)
	cp -a SQLite.bundle Bundles/SQLClient$(sover)
	LD_LIBRARY_PATH=$(CURDIR)/obj:$$LD_LIBRARY_PATH \
	  GNUSTEP_CONFIG_FILE=$(CURDIR)/test.conf ./obj/testSQLite
	cp -a Postgres.bundle Bundles/SQLClient$(sover)
	LD_LIBRARY_PATH=$(CURDIR)/obj:$$LD_LIBRARY_PATH \
	  GNUSTEP_CONFIG_FILE=$(CURDIR)/test.conf LC_ALL=C.UTF-8 \
	  pg_virtualenv -i "-U postgres -A trust" ./obj/testPostgres

execute_before_dh_link:
	gsdh_gnustep