Skip to content

Commit

Permalink
- start support for Fedora comps format
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Feb 2, 2012
1 parent 857fe28 commit 0589bfb
Show file tree
Hide file tree
Showing 9 changed files with 484 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ OPTION (USE_VENDORDIRS "Install the bindings in vendor directories?" OFF)
OPTION (ENABLE_RPMDB "Build with rpm database support?" OFF)
OPTION (ENABLE_RPMMD "Build with rpmmd repository support?" OFF)
OPTION (ENABLE_SUSEREPO "Build with suse repository support?" OFF)
OPTION (ENABLE_COMPS "Build with fedora comps support?" OFF)
OPTION (ENABLE_HELIXREPO "Build with helix repository support?" OFF)
OPTION (ENABLE_DEBIAN "Build with debian database/repository support?" OFF)

Expand Down Expand Up @@ -128,7 +129,7 @@ TEST_BIG_ENDIAN (WORDS_BIGENDIAN)

# should create config.h with #cmakedefine instead...
FOREACH (VAR HAVE_STRCHRNUL HAVE_FOPENCOOKIE HAVE_FUNOPEN WORDS_BIGENDIAN
ENABLE_RPMDB ENABLE_RPMMD ENABLE_SUSEREPO ENABLE_HELIXREPO ENABLE_DEBIAN)
ENABLE_RPMDB ENABLE_RPMMD ENABLE_SUSEREPO ENABLE_COMPS ENABLE_HELIXREPO ENABLE_DEBIAN)
IF(${VAR})
ADD_DEFINITIONS (-D${VAR}=1)
ENDIF (${VAR})
Expand Down
7 changes: 7 additions & 0 deletions ext/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ IF (ENABLE_SUSEREPO)
repo_susetags.h repo_zyppdb.h)
ENDIF (ENABLE_SUSEREPO)

IF (ENABLE_COMPS)
SET (libsolvext_SRCS ${libsolvext_SRCS}
repo_comps.c)
SET (libsolvext_HEADERS ${libsolvext_HEADERS}
repo_comps.h)
ENDIF (ENABLE_COMPS)

IF (ENABLE_DEBIAN)
SET (libsolvext_SRCS ${libsolvext_SRCS}
repo_deb.c)
Expand Down
1 change: 1 addition & 0 deletions ext/libsolvext.ver
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ SOLV_1.0 {
pool_findfileconflicts;
repo_add_code11_products;
repo_add_content;
repo_add_comps;
repo_add_deb;
repo_add_debdb;
repo_add_debpackages;
Expand Down
Loading

0 comments on commit 0589bfb

Please sign in to comment.